m5stack / M5Atom

M5Stack Atom Arduino Library
MIT License
226 stars 71 forks source link

SetServoAngle was returning the wrong value on invalid Register_address #80

Closed AdamJHowell closed 3 months ago

AdamJHowell commented 7 months ago

When Servo_CH is greater than 4 (Register_address is greater than 3), the return value will now be 1 instead of 0.

AdamJHowell commented 7 months ago

SetServoAngle always returns zero, so I fixed that.