I think this might be the issue here:
https://github.com/espruino/Espruino/blob/9bb8c66015d8b9fa1aaa80a4eaab217e2f308be0/targets/esp32/jshardware.c#L623
If the timer is less than 30 - it's set the 30. @jumjum - can you recall why?
Sorry, no bell is ringing on that. Could be in there from beginning by nkolban ?
@Wilberforce 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.
I think this might be the issue here:
https://github.com/espruino/Espruino/blob/9bb8c66015d8b9fa1aaa80a4eaab217e2f308be0/targets/esp32/jshardware.c#L623
If the timer is less than 30 - it's set the 30. @jumjum - can you recall why?