Skip to content

Commit

Permalink
Fix an important bug in the watchdog creation logic
Browse files Browse the repository at this point in the history
  • Loading branch information
gregory-nutt committed Nov 11, 2014
1 parent 9ff5d5e commit 2caeead
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sched/wdog/wd_create.c
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 2caeead

Please sign in to comment.