From d8ebd6ab77fc422232e679a36887f40a56c24e53 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?K=C3=A9vin=20Redon?= Date: Sat, 28 Jul 2018 19:04:23 +0200 Subject: [PATCH] cardem: increase watchdog to 2 seconds a lot of the procedures are done in ISRs, but the watchdog is only reset in the main loop. this causes frequent reset, particularly at the beginning were states have to the initialized. Change-Id: Iad364444fca9d18f9a8cf47d5e0840ccd7bac2ef --- firmware/apps/cardem/main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/firmware/apps/cardem/main.c b/firmware/apps/cardem/main.c index 7d65c7eb..6cd3439b 100644 --- a/firmware/apps/cardem/main.c +++ b/firmware/apps/cardem/main.c @@ -144,9 +144,9 @@ extern int main(void) led_init(); led_blink(LED_RED, BLINK_3O_5F); - /* Enable watchdog for 500ms, with no window */ + /* Enable watchdog for 2000ms, with no window */ WDT_Enable(WDT, WDT_MR_WDRSTEN | WDT_MR_WDDBGHLT | WDT_MR_WDIDLEHLT | - (WDT_GetPeriod(500) << 16) | WDT_GetPeriod(500)); + (WDT_GetPeriod(2000) << 16) | WDT_GetPeriod(2000)); PIO_InitializeInterrupts(0);