setInterval Bug? #309
Replies: 5 comments
-
Posted at 2014-08-20 by DrAzzy What version of Espruino are you using? There was a bug in setInterval fixed in v68. See also |
Beta Was this translation helpful? Give feedback.
-
Posted at 2014-08-21 by @gfwilliams 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... |
Beta Was this translation helpful? Give feedback.
-
Posted at 2014-08-21 by user47955 Many thanks for the replies. I am using 1v69. I can wait until it is fixed, no worries. |
Beta Was this translation helpful? Give feedback.
-
Posted at 2014-08-25 by @gfwilliams 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 |
Beta Was this translation helpful? Give feedback.
-
Posted at 2014-08-25 by user47955 Many thanks Gordon. Keep up the excellent work. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Posted at 2014-08-20 by user47955
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?
Beta Was this translation helpful? Give feedback.
All reactions