wangchdo commented on code in PR #17518:
URL: https://github.com/apache/nuttx/pull/17518#discussion_r2621649536


##########
include/nuttx/timers/oneshot.h:
##########
@@ -298,7 +298,7 @@ void oneshot_count_init(FAR struct oneshot_lowerhalf_s 
*lower,
   result = clkcnt_delta_cnt2nsec_fast(frequency, lower->cnt2nsec_mult,
                                       lower->cnt2nsec_shift);
 
-  ASSERT(NSEC_PER_SEC - 5 <= result && NSEC_PER_SEC + 5 >= result);
+  ASSERT(NSEC_PER_SEC - 5 <= result && NSEC_PER_SEC >= result);

Review Comment:
   Replace the magic number 5 with a properly defined macro.



-- 
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