jandelgado / jled

Non-blocking LED controlling library for Arduino and friends.
MIT License
324 stars 51 forks source link

Handle millis overflow during running state #79

Closed boraozgen closed 2 years ago

boraozgen commented 2 years ago

If millis overflowed during running state, now < time_start_ always returned true and hanged the library. This change checks if now >= last_update_time_ to ensure there is no overflow situation.