change millis() to micros() in feed_wdt for 3ms check (#2492)

This commit is contained in:
Carlos Garcia Saura 2021-10-13 18:50:27 +02:00 committed by GitHub
parent 534ce11d54
commit 859e508392
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -109,8 +109,8 @@ void Application::loop() {
void IRAM_ATTR HOT Application::feed_wdt() {
static uint32_t last_feed = 0;
uint32_t now = millis();
if (now - last_feed > 3) {
uint32_t now = micros();
if (now - last_feed > 3000) {
arch_feed_wdt();
last_feed = now;
#ifdef USE_STATUS_LED