Most recent activity
-
I'm having the exact same problem - using
setWatch
on the ESP32 sometimes reboots when one of the buttons is pressed.I think this is something to do with how GPIO interrupts the handled by gpio_intr_handler (in jshardware.c) - the code does not disable further interrupts and might be invoked again while processing (buttons generate a lot of interrupts when switching from one state to another, this is why debouncing is needed).
Seems like there is an open issue for this:
https://github.com/espruino/Espruino/issues/2342