Skip to content

delay() is inaccurate, averaging 500us too short. #60

@WestfW

Description

@WestfW

Since delay(n) waits for n ticks of the millisecond counter, any time already elapsed in the "current" millisecond isn't taken into account.

This was fixed a long time ago for the AVR, but it didn't make it into SAMD/SAM

arduino/Arduino#237

arduino/ArduinoCore-avr@67c0a19#diff-ab397febf179e1982f4ee0758df4c982

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