From 11c0be1c04218070edfe63ba38d11b6ca05ab8a0 Mon Sep 17 00:00:00 2001 From: "Deomid \"rojer\" Ryabkov" Date: Mon, 12 Jul 2021 09:46:51 +0100 Subject: [PATCH] Use the correct value for HW WDT stage 1 --- platforms/esp8266/src/esp_hw_wdt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platforms/esp8266/src/esp_hw_wdt.c b/platforms/esp8266/src/esp_hw_wdt.c index 789821abf..4de174390 100644 --- a/platforms/esp8266/src/esp_hw_wdt.c +++ b/platforms/esp8266/src/esp_hw_wdt.c @@ -43,7 +43,7 @@ void esp_hw_wdt_setup(enum esp_hw_wdt_timeout stage0_timeout, } WRITE_PERI_REG(WDT_RELOAD_STAGE0, stage0_timeout); if (stage1_timeout != ESP_HW_WDT_DISABLE) { - WRITE_PERI_REG(WDT_RELOAD_STAGE1, stage0_timeout); + WRITE_PERI_REG(WDT_RELOAD_STAGE1, stage1_timeout); } else { ctl |= WDT_CTL_STAGE1_DISABLE; WRITE_PERI_REG(WDT_CTL, ctl);