GUIDINGLI commented on code in PR #13410:
URL: https://github.com/apache/nuttx/pull/13410#discussion_r1758605997
##########
sched/timer/timer_settime.c:
##########
@@ -96,11 +96,32 @@ static inline void timer_signotify(FAR struct posix_timer_s
*timer)
static inline void timer_restart(FAR struct posix_timer_s *timer,
wdparm_t itimer)
{
+ clock_t ticks;
+ sclock_t delay;
+
/* If this is a repetitive timer, then restart the watchdog */
if (timer->pt_delay)
{
- wd_start(&timer->pt_wdog, timer->pt_delay, timer_timeout, itimer);
+ /* Check whether next expected time is reached */
+
+ ticks = clock_systime_ticks();
+ timer->pt_overrun = 0;
+
+ for (; ; )
Review Comment:
done
--
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]