-
• #2
What version of Espruino are you using? There was a bug in setInterval fixed in v68.
See also
https://github.com/espruino/Espruino/issues/416
(I suspect it effects intervals as well) -
• #3
Yes, that'll be the problem... And while your 24 hour delay doesn't run non-stop, it is unlikely to have the right delay.
I only found out about it on Friday a few hours before I went on a week's holiday, so there wasn't time to fix it. I'll see if I can get something done tomorrow. In the mean time I'm afraid you'll have to use shorter delays (10 minutes?) and a counter...
-
• #4
Many thanks for the replies.
I am using 1v69.
I can wait until it is fixed, no worries.
-
• #5
It's now fixed, and will be in the 1v70 release (which will be out in 2 weeks).
If you can't wait, you can get the binary from:
http://www.espruino.com/binaries/git/commits/67adc8b39dec7c7f6c3ab6b195597abc6e5e4928
Just 'copy link' on the non-wiznet
.bin
file, and paste it into the 'Advanced Flash' box in the Web IDE settings page. -
• #6
Many thanks Gordon.
Keep up the excellent work.
If I run the following code the setInterval fires straight away and continuously, it should only fire every hour:
If you change it to this so that it only runs every 24 hours it works OK:
Is this a bug?