tmr interval bug 12884901 6871948
Posted: Sun May 01, 2016 11:41 am
I need a tmr with large values to accommodate a necessary off function for relay.
This comment is in https://nodemcu.readthedocs.io/en/dev/en/modules/tmr/
However, when I downloaded 1.5.1 dev and built/flashed, I found the "bug" is still there.
For example, this code finishes immediately:
Can anyone tell me the status of this issue? ( I realize I can work around with breaking it up into multiples with intermediate functions but I'd like to clean up if I can.)
This comment is in https://nodemcu.readthedocs.io/en/dev/en/modules/tmr/
timer interval in milliseconds. Maximum value is 12884901. In SDKs <= 1.5.0 values >6871948 result in incorrect behaviour.
However, when I downloaded 1.5.1 dev and built/flashed, I found the "bug" is still there.
For example, this code finishes immediately:
Code: Select all
tmr.alarm(0,12600000,0,function() print("\nDone\n") end)
Can anyone tell me the status of this issue? ( I realize I can work around with breaking it up into multiples with intermediate functions but I'd like to clean up if I can.)