gin66 / FastAccelStepper

A high speed stepper library for Atmega 168/328p (nano), Atmega32u4, Atmega 2560, ESP32, ESP32S2, ESP32S3, ESP32C3 and Atmel SAM Due
MIT License
282 stars 67 forks source link

Add missing parentheses to US_TO_TICKS and TICKS_TO_US macros. #271

Closed HalfVoxel closed 1 week ago

HalfVoxel commented 1 week ago

Spent an hour trying to figure out why my timestamps were all wrong. Turns out it was only converting part of the expression. Might I suggest using inline functions for this instead?

gin66 commented 1 week ago

Thanks for the PR. Makes totally sense.