Skip to content

Wait() issue #2910

@Testato

Description

@Testato

if you try to use the wait() function on the classic mbed-dev (NOT mbed-os)
and you use a 100ms of delay
You will found a bug in the wait function. the timing made many errors, the Led jump blinking
I tested it on an F103 board

#include "mbed.h"

DigitalOut myled(PC_13);

int main() {
    while(1) {
        myled = 1;
        wait_ms(100);
        myled = 0;
        wait_ms(100);
    }
}`

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions