mirror of
https://github.com/esphome/esphome.git
synced 2024-11-28 12:46:22 +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() {
|
void IRAM_ATTR HOT Application::feed_wdt() {
|
||||||
static uint32_t last_feed = 0;
|
static uint32_t last_feed = 0;
|
||||||
uint32_t now = millis();
|
uint32_t now = micros();
|
||||||
if (now - last_feed > 3) {
|
if (now - last_feed > 3000) {
|
||||||
arch_feed_wdt();
|
arch_feed_wdt();
|
||||||
last_feed = now;
|
last_feed = now;
|
||||||
#ifdef USE_STATUS_LED
|
#ifdef USE_STATUS_LED
|
||||||
|
Loading…
Reference in New Issue
Block a user