-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
sys/ztimer: ztimer_set() return the now value #17385
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ACK.
Make mental note: do the same for ztimer64 |
BTW, does |
please squash! |
0696591
to
2835b6d
Compare
2835b6d
to
dd03d8c
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry for being late to the party. But the current CI queue says there would be still 13 minutes left to squash in this nitpick without wasting CI time :) (I'm not insisting on this, but I do like it when all CI tools are happy.)
Contribution description
This PR makes
ztimer_set
return thenow
value it was set against. This change although an API change should not break anything since the function was returning void, but it should allow estimating the actual value against which the set function was used.My main motivation for this is that
esp
timer implementation sets atimer_expire
value that cant be directly translated fromztimer
toxtimer
. So I'm open to any other better suggestion on doing such a thing.Testing procedure
everything should still build ok!