Thanks - I'll change the documentation. I vaguely remember changing it - the reasoning was that if you made a really long interval, it got difficult to change it to anything shorter.
If you want the old behaviour it's easy enough to fake:
var interval = setInterval( function() {
if (newInterval) {
changeInterval(interval, newInterval);
newInterval = undefined;
}
// ...
, 1000 );
var newInterval = 1000;
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
Thanks - I'll change the documentation. I vaguely remember changing it - the reasoning was that if you made a really long interval, it got difficult to change it to anything shorter.
If you want the old behaviour it's easy enough to fake: