Skip to content

Call "delay ()" will cause "WDT reset" in the timer callback function #668

@chzhewl

Description

@chzhewl

I Using the "Ticker" class to start a timer, call the "delay (3000)" in the callback function to cause the program to have no response, and after a while, "WDT reset".
Sample code:

include <Ticker.h>

Ticker test;
void test_callback()
{
Serial1.println("start");
delay(3000); //wdt reset
Serial1.println("end"); //not print
}
void setup() {
Serial1.begin(115200);
test.once(3, test_callback);
}
void loop() {}

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