mirror of
https://github.com/apache/nuttx.git
synced 2026-08-07 13:37:18 +00:00
Fix an important bug in the watchdog creation logic
This commit is contained in:
parent
9ff5d5ee6e
commit
2caeead612
1 changed files with 1 additions and 1 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue