Skip to content
  • Sponsor arduino/ArduinoCore-megaavr

  • Notifications You must be signed in to change notification settings
  • Fork 64

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

Open
@dok-net

Description

@dok-net

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.

Activity

cmaglie

cmaglie commented on Sep 25, 2019

@cmaglie
Member

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

dok-net commented on Sep 27, 2019

@dok-net
Author

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Compatibility: delay() should call yield() · Issue #57 · arduino/ArduinoCore-megaavr