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

Compatibility: delay() should call yield() #57

Open
dok-net opened this issue Sep 25, 2019 · 2 comments
Open

Compatibility: delay() should call yield() #57

dok-net opened this issue Sep 25, 2019 · 2 comments

Comments

@dok-net
Copy link

dok-net commented Sep 25, 2019

In official AVR Arduino core, delay() is based on yield(), which is turn has weak binding and is overridable.
I am asking that delay() on any Arduino platform must call yield() at least once, preferably at the end of delay(), for compatibility with libraries like Scheduler and similar implementations.

@cmaglie
Copy link
Member

cmaglie commented Sep 25, 2019

Good suggestion, but yield must be called inside the busy loop not at the end of delay (there is no point in blocking until the end of the delay).

@dok-net
Copy link
Author

dok-net commented Sep 27, 2019

PR #58 gets serious on this issue :-)

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

No branches or pull requests

2 participants