madhephaestus / ESP32Servo

Arduino-compatible servo library for the ESP32
139 stars 55 forks source link

Bugfix: +1 on read was throwing off accuracy #50

Closed abstractBoyd closed 7 months ago

abstractBoyd commented 7 months ago

Noticed that when I was reading the current value from the servo, incrementing or decrementing it by one, and then writing it back - that the servo would only move in one direction. Tracked it down to this extraneous +1 in the read that isn't mirrored in the write.

madhephaestus commented 7 months ago

thank you!