I am trying to fiddle proof a bangle.Js 2 as i want to use it for various reminders for my 4 year old.
As part of that i would really like to control for how long a interval one must hold the button before a reboot is triggered as the default one seems quite low for my situation.
But what i need is really the trigger for the reboot. I have also looked in the bangle JS code but to no avail. There seems to be a E.Reboot function which trigges the reboot, but i fail to see anythign calling that.
Can someone help on where the trigger code for a reboot is?
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.
Hi.
I am trying to fiddle proof a bangle.Js 2 as i want to use it for various reminders for my 4 year old.
As part of that i would really like to control for how long a interval one must hold the button before a reboot is triggered as the default one seems quite low for my situation.
I have however some difficulties locating the actual code triggering the reboot.
I can locate the firmware code in https://github.com/espruino/Espruino/blob/912aecb676c78e8fc0282775b46c7ad48c428a30/targets/nrf5x_dfu/main.c where nrf_dfu_enter_check seems to be running directly after the reboot (controlling if we boot without loading code etc.)
But what i need is really the trigger for the reboot. I have also looked in the bangle JS code but to no avail. There seems to be a E.Reboot function which trigges the reboot, but i fail to see anythign calling that.
Can someone help on where the trigger code for a reboot is?