1
0
Fork 0

main: Tidy up splash screen delays.

Shorten the delay on the application boot path to make the boot feel
quicker. Add a delay to the bootloader path so the user gets to see the
splash screen ;-) .
pull/1/head
Daniel Thompson 2020-01-25 19:33:47 +00:00
parent 0125b3e49b
commit 1e7d8c327d
1 changed files with 4 additions and 1 deletions

View File

@ -110,7 +110,7 @@ void usb_teardown(void);
#define DFU_DBL_RESET_MEM 0x20007F7C
#define BOOTLOADER_VERSION_REGISTER NRF_TIMER2->CC[0]
#define DFU_SERIAL_STARTUP_INTERVAL 3000
#define DFU_SERIAL_STARTUP_INTERVAL 2000
// These value must be the same with one in dfu_transport_ble.c
#define BLEGAP_EVENT_LENGTH 6
@ -230,6 +230,9 @@ int main(void)
// if RST is pressed during this delay --> if will enter dfu
NRFX_DELAY_MS(DFU_DBL_RESET_DELAY);
#endif
} else {
/* allow the splash screen to be seen ;-) */
NRFX_DELAY_MS(DFU_DBL_RESET_DELAY);
}
(*dbl_reset_mem) = 0;