xiaoxiang781216 commented on code in PR #17279:
URL: https://github.com/apache/nuttx/pull/17279#discussion_r2493067198


##########
sched/wdog/wd_start.c:
##########
@@ -139,7 +139,7 @@ static inline_function void wd_expiration(clock_t ticks)
 
       /* Check if expected time is expired */
 
-      if (!clock_compare(wdog->expired, ticks))
+      if (!clock_compare(wdog->expired, clock_systime_ticks()))

Review Comment:
   it's better to recheck the tick after the loop



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to