xiaoxiang781216 commented on code in PR #14818:
URL: https://github.com/apache/nuttx/pull/14818#discussion_r1845015161
##########
drivers/timers/arch_alarm.c:
##########
@@ -102,9 +102,9 @@ static void udelay_coarse(useconds_t microseconds)
static void oneshot_callback(FAR struct oneshot_lowerhalf_s *lower,
FAR void *arg)
{
- clock_t now;
- ONESHOT_TICK_CURRENT(g_oneshot_lower, &now);
+ clock_t now = 0;
+ ONESHOT_TICK_CURRENT(g_oneshot_lower, &now);
Review Comment:
No, the value doesn't set if the driver doesn't implement the related
callback after https://github.com/apache/nuttx/pull/14619.
--
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]