stacked on setinterval #281
Unanswered
espruino-discuss
asked this question in
JavaScript
Replies: 1 comment
-
Posted at 2014-06-15 by MrTimcakes The problem is that when you change the variable a interval uses the interval doesn't actually change, to change it you have to assign the interval to a variable and then use the function changeInterval. So to fix your code you could either use changeInterval or use could make the function call itself with timeouts instead of intervals (Timeouts call once after the time then get deleted).
Or with changeInterval:
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Posted at 2014-06-15 by Bert-Holland
I try to make a loop with a dynamic intervaltime.
I don't know how to fix this.
Do someone have a suggestion for me?
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions