wangchdo commented on code in PR #17642:
URL: https://github.com/apache/nuttx/pull/17642#discussion_r2661125104
##########
include/nuttx/hrtimer.h:
##########
@@ -134,13 +119,11 @@ extern "C"
****************************************************************************/
static inline_function
-void hrtimer_init(FAR hrtimer_t *hrtimer,
- hrtimer_cb func,
- FAR void *arg)
+void hrtimer_init(FAR hrtimer_t *hrtimer, hrtimer_cb func)
{
- hrtimer->state = HRTIMER_STATE_INACTIVE;
- hrtimer->func = func;
- hrtimer->arg = arg;
+ memset(hrtimer, 0, sizeof(hrtimer_t));
+ hrtimer->func = func;
+ hrtimer->cpus = 0;
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]