FelipeMdeO commented on code in PR #19596: URL: https://github.com/apache/nuttx/pull/19596#discussion_r3700326951
########## drivers/sensors/sensor.c: ########## @@ -96,6 +97,17 @@ struct sensor_user_s struct list_node node; /* Node of users list */ struct pollfd *fds; /* The poll structure of thread waiting events */ sensor_role_t role; /* The is used to indicate user's role based on open flags */ +#ifdef CONFIG_SCHED_LPWORK + + /* Paces POLLIN for a fetch() only lower half at the interval this user + * asked for: upper is the device it belongs to, and fetched is when + * POLLIN was last reported to it, in microseconds. + */ + + FAR struct sensor_upperhalf_s *upper; + struct work_s work; Review Comment: wdog is the right approach, thanks for highlight it. -- 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]
