mirror of
https://github.com/esphome/esphome.git
synced 2024-11-25 00:18:11 +01:00
change millis() to micros() in feed_wdt for 3ms check (#2492)
This commit is contained in:
parent
534ce11d54
commit
859e508392
1 changed files with 2 additions and 2 deletions
|
@ -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 a new issue