1
0
mirror of https://github.com/esphome/esphome.git synced 2025-09-03 20:02:22 +01:00

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

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