You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The timer is not atomic as used in the library
first is called timer.expired() and after timer.left_ms()
so sometimes when time left is small timer.left_ms() return a very big value.
The timer is not atomic as used in the library
first is called timer.expired() and after timer.left_ms()
so sometimes when time left is small timer.left_ms() return a very big value.
I think the best solution is to make timer atomic
https://github.com/eclipse/paho.mqtt.embedded-c/blob/29ab2aa29c5e47794284376d7f8386cfd54c3eed/MQTTClient/src/arduino/Countdown.h#L48
as below:
The text was updated successfully, but these errors were encountered: