If I run the following code the setInterval fires straight away and continuously, it should only fire every hour:
function test(){ console.log("Test Function"); } setInterval(test, 60*60*1000);
If you change it to this so that it only runs every 24 hours it works OK:
function test(){ console.log("Test Function"); } setInterval(test, 24*60*60*1000);
Is this a bug?
@user47955 started
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.
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?