So it seems to me that there is some code which after the button has been pressed between 1 and 1,5 seconds will effectively clear all intervals and times.
Ahh - yes, this is the app reload code.
The button does two things:
If held for ~2 secs it loads the default clock face
If held for ~10 secs it resets the device
The code will stop the ~10 second timer from happening, but not the 2 sec one. So the watch will still reload the default clock face which will then stop your code from running.
If your code was 'boot code' then it would run even after the reload.
So for example if you write setInterval(E.kickWatchdog,1000); to noreboot.boot.js then long-pressing the button will not reboot the watch (but it will still cause the default clock app to reload).
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.
Ahh - yes, this is the app reload code.
The button does two things:
The code will stop the ~10 second timer from happening, but not the 2 sec one. So the watch will still reload the default clock face which will then stop your code from running.
If your code was 'boot code' then it would run even after the reload.
So for example if you write
setInterval(E.kickWatchdog,1000);
tonoreboot.boot.js
then long-pressing the button will not reboot the watch (but it will still cause the default clock app to reload).