off led before jumping to application

This commit is contained in:
hathach 2018-04-20 12:58:17 +07:00
parent 0a1aa554bc
commit fce0a419c1

View File

@ -419,6 +419,9 @@ int main(void)
/*------------- Stop timer and jump to application -------------*/ /*------------- Stop timer and jump to application -------------*/
app_timer_stop(blinky_timer_id); app_timer_stop(blinky_timer_id);
led_off(LED_BLUE);
led_off(LED_RED);
if (bootloader_app_is_valid(DFU_BANK_0_REGION_START) && !bootloader_dfu_sd_in_progress()) if (bootloader_app_is_valid(DFU_BANK_0_REGION_START) && !bootloader_dfu_sd_in_progress())
{ {
// Stop RTC1 // Stop RTC1