From 394d5d20d2d6c16988d9fc6b140283699691ea9c Mon Sep 17 00:00:00 2001 From: Michael Buesch Date: Wed, 10 Dec 2014 18:06:33 +0100 Subject: Reduce watchdog timeout for main loop Signed-off-by: Michael Buesch --- firmware/main.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/firmware/main.c b/firmware/main.c index a45dd40..5d780d0 100644 --- a/firmware/main.c +++ b/firmware/main.c @@ -424,7 +424,7 @@ int main(void) irq_disable(); - wdt_enable(WDTO_1S); + wdt_enable(WDTO_2S); /* Initialize the system. */ onoffswitch_init(); @@ -439,7 +439,8 @@ int main(void) /* Sanity checks. */ build_assert(sizeof(struct msg_payload) <= COMM_PAYLOAD_LEN); - /* Enable interrupts and enter the mainloop. */ + /* Enable watchdog, interrupts and enter the mainloop. */ + wdt_enable(WDTO_250MS); irq_enable(); while (1) { /* Poke the watchdog. */ -- cgit v1.2.3