From 01c5fb32b6c054caf5bb846a8d5f04808984bb14 Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Mon, 10 Nov 2014 18:15:26 -0600 Subject: Fix an important bug in the watchdog creation logic --- nuttx/sched/wdog/wd_create.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nuttx/sched/wdog/wd_create.c b/nuttx/sched/wdog/wd_create.c index 459f0a68a..2c04724a4 100644 --- a/nuttx/sched/wdog/wd_create.c +++ b/nuttx/sched/wdog/wd_create.c @@ -107,7 +107,7 @@ WDOG_ID wd_create (void) * the head of the free list. */ - if (g_wdnfree > CONFIG_WDOG_INTRESERVE || !up_interrupt_context()) + if (g_wdnfree > CONFIG_WDOG_INTRESERVE || up_interrupt_context()) { /* Remove the watchdog timer from the free list and decrement the * count of free timers all with interrupts disabled. -- cgit v1.2.3