From 3bbaba0090d27d445165a28db6ec75b9f00da379 Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Mon, 6 Mar 2017 22:47:06 +0100 Subject: [PATCH] DFU: Disable LED blinking code Something odd is happening that breaks DFU mode if we blink. Let's remove this feature for now. --- firmware/apps/dfu/main.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/firmware/apps/dfu/main.c b/firmware/apps/dfu/main.c index a99c3fde..2b44f01d 100644 --- a/firmware/apps/dfu/main.c +++ b/firmware/apps/dfu/main.c @@ -4,6 +4,8 @@ #include "usb/common/dfu/usb_dfu.h" #include "manifest.h" +#include + #define ALTIF_RAM 0 #define ALTIF_FLASH 1 @@ -178,9 +180,11 @@ extern int main(void) unsigned int i = 0; uint32_t reset_cause = (RSTC->RSTC_SR & RSTC_SR_RSTTYP_Msk) >> RSTC_SR_RSTTYP_Pos; +#if 0 led_init(); led_blink(LED_GREEN, BLINK_3O_30F); led_blink(LED_RED, BLINK_3O_30F); +#endif /* Enable watchdog for 500ms, with no window */ WDT_Enable(WDT, WDT_MR_WDRSTEN | WDT_MR_WDDBGHLT | WDT_MR_WDIDLEHLT | @@ -237,8 +241,10 @@ extern int main(void) putchar(rotor[i++ % ARRAY_SIZE(rotor)]); #endif check_exec_dbg_cmd(); - //osmo_timers_prepare(); - //osmo_timers_update(); +#if 0 + osmo_timers_prepare(); + osmo_timers_update(); +#endif if (USBD_GetState() < USBD_STATE_CONFIGURED) {