M5Atom icon indicating copy to clipboard operation
M5Atom copied to clipboard

SetServoAngle was returning the wrong value on invalid Register_address

Open AdamJHowell opened this issue 2 years ago • 1 comments

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

AdamJHowell avatar Jan 24 '24 19:01 AdamJHowell

SetServoAngle always returns zero, so I fixed that.

AdamJHowell avatar Jan 24 '24 19:01 AdamJHowell