From 71f37dd5b252e9109a54776a50138f4161e6f8cd Mon Sep 17 00:00:00 2001 From: Daniel Thompson Date: Thu, 11 Jun 2020 20:38:53 +0100 Subject: [PATCH] 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 --- src/boards.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/boards.c b/src/boards.c index 77a9192..028ee68 100644 --- a/src/boards.c +++ b/src/boards.c @@ -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(); }