arduino/ArduinoCore-megaavr

Compatibility: delay() should call yield()

dok-net opened this issue · 2 comments

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.

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).

PR #58 gets serious on this issue :-)