1
0
Fork 0

Extend the button blackout slightly

If the button blackout time is too short then we can reset before
we remove the splash screen... which means we can't hold down the
button when we transition to the payload... which, for wasp-os,
makes it really hard to trigger safe mode.

Signed-off-by: Daniel Thompson <daniel@redfelineninja.org.uk>
wasp-os
Daniel Thompson 2020-06-11 20:38:53 +01:00
parent 21bcf675a4
commit 71f37dd5b2
1 changed files with 1 additions and 1 deletions

View File

@ -174,7 +174,7 @@ void SysTick_Handler(void)
* recovering from a flat battery.
*/
if (button_pressed(BUTTON_DFU)) {
if (_systick_count > 2000 && _long_press_count++ > 50) {
if (_systick_count > 2750 && _long_press_count++ > 50) {
NRF_POWER->GPREGRET = BOARD_MAGIC_FORCE_APP_BOOT;
NVIC_SystemReset();
}