mirror of
https://github.com/esphome/esphome.git
synced 2024-12-25 17:07:50 +01:00
change millis() to micros() in feed_wdt for 3ms check (#2492)
This commit is contained in:
parent
534ce11d54
commit
859e508392
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user