If you run this code:
var s = { idle_check : true }; E.showMenu({'Idle Warning': { value: s.idle_check, format: () => (s.idle_check ? 'Yes' : 'No'), onchange: () => { s.idle_check = !s.idle_check; }, } })
It seems to work fine. I'd suggest using the second option above (with v), but the other one does still seem to work here.
v
If you can come up with a little snippet of code like the above that fails, please let me know and I'll look into it.
I've converted the boolean Yes/No's to the v syntax. Seems to work now. Vey strange that adding one new setting like this would not work.
@HughB 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 you run this code:
It seems to work fine. I'd suggest using the second option above (with
v
), but the other one does still seem to work here.If you can come up with a little snippet of code like the above that fails, please let me know and I'll look into it.