Skip to content

timers: Replace DEBUGASSERT with the error code#12484

Closed
xiaoxiang781216 wants to merge 1 commit into
apache:masterfrom
xiaoxiang781216:r
Closed

timers: Replace DEBUGASSERT with the error code#12484
xiaoxiang781216 wants to merge 1 commit into
apache:masterfrom
xiaoxiang781216:r

Conversation

@xiaoxiang781216

Copy link
Copy Markdown
Contributor

Summary

fix the issue report here:
https://lists.apache.org/thread/sys37yf63rq501fd1v8y3zyh6vk10v1d

Impact

more robust

Testing

ci

Comment thread include/nuttx/timers/oneshot.h Outdated
fix the issue report here:
https://lists.apache.org/thread/sys37yf63rq501fd1v8y3zyh6vk10v1d

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
DEBUGASSERT(lower->ops->tick_getstatus);
if (lower->ops->tick_getstatus == NULL)
{
return -ENOTSUP;

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

missing

#include <errno.h>

@acassis

acassis commented Jun 22, 2024

Copy link
Copy Markdown
Contributor

@xiaoxiang781216 please include errno.h as Raiden commented

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants