Fix a DEBUGASSERTion
This commit is contained in:
parent
89b5ef8d35
commit
0b2fbd7a2c
2
arch
2
arch
|
@ -1 +1 @@
|
|||
Subproject commit 94705f285e98a1ec5ca66027be01eff2e1189e27
|
||||
Subproject commit b2709988e66303b69358f7b7a910905a6a7ff888
|
2
configs
2
configs
|
@ -1 +1 @@
|
|||
Subproject commit e3f37812a9a7595a7ddab1a625ebe857d104beb2
|
||||
Subproject commit fda2b2266521c5cf312aa37ed3c2cd03a4a5c1db
|
|
@ -115,13 +115,13 @@ WDOG_ID wd_create (void)
|
|||
|
||||
/* Did we get one? */
|
||||
|
||||
if (wdog)
|
||||
if (wdog != NULL)
|
||||
{
|
||||
/* Yes.. decrement the count of free, pre-allocated timers (all
|
||||
* with interrupts disabled).
|
||||
*/
|
||||
|
||||
DEBUGASSERT(g_wdnfree > 0 && wdog != NULL);
|
||||
DEBUGASSERT(g_wdnfree > 0);
|
||||
g_wdnfree--;
|
||||
|
||||
/* Clear the forward link and all flags */
|
||||
|
|
Loading…
Reference in New Issue