Skip to content
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

Changed Zephyr's z_sleep_ms to allow for sleeps longer than 1 second #1

Merged
merged 2 commits into from
Feb 2, 2023
Merged

Changed Zephyr's z_sleep_ms to allow for sleeps longer than 1 second #1

merged 2 commits into from
Feb 2, 2023

Conversation

dcorbeil
Copy link

@dcorbeil dcorbeil commented Feb 1, 2023

z_sleep_ms use zephyr's nanosleep because the previously used usleep doesn't support sleeps for more than 1 second.

The thinking was to keep using Zephyr's POSIX API as zenoh-pico was already doing for z_sleep_us and z_sleep_s and because the now deprecated usleep recommends using nanosleep instead.

Related to eclipse-zenoh#156

@cguimaraes cguimaraes merged commit 068df47 into cguimaraes:fix-156 Feb 2, 2023
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.

2 participants