From f6fba399c6f97e95a41b3edfb386bbdd68ff8a80 Mon Sep 17 00:00:00 2001 From: Richard Meadows Date: Thu, 31 Dec 2015 22:06:10 +0000 Subject: [PATCH] Fix define do/while.. --- firmware/src/watchdog.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/firmware/src/watchdog.c b/firmware/src/watchdog.c index 384aad4..1945494 100644 --- a/firmware/src/watchdog.c +++ b/firmware/src/watchdog.c @@ -42,7 +42,7 @@ idle_wait_t last_idle_t = IDLE_NONE; #define kick_external_watchdog() do { port_pin_set_output_level(WDT_WDI_PIN, 1); \ __NOP(); /* > 50ns high */ \ port_pin_set_output_level(WDT_WDI_PIN, 0); \ - } while(1) + } while(0) /** * Increments the specified idle counter