Skip to content

Wait() will be broken when running under an overclock #2

Description

@NoraCodes

In RaspberryPiLib.cpp's Wait() (on line 82), time to wait is calculated with

uint32 target = ticks + ( time * 800 );

where 800 is a magic number based on the default clockspeed. If there's a way to detect the current clockspeed (or even just detect on boot), maybe it should use that instead?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions