This prevents an insignificant error, but it is more correct to handle the integer overflow instead of ignoring it. I've also changed syncTimer from a 32-bit to 16-bit integer, which results in a smaller code size, and changed the computation of the timeout slightly, so the LED update interval is always the same (we add `syncDelay` to the previous update's start time, not it's end time), rather than varying based on when LEDControl's `loopHook()` function is called relative to the last timeout.pull/365/head
parent
d0a2b2932d
commit
9964a3ce70
Loading…
Reference in new issue