Skip to content

Commit 11c0be1

Browse files
committed
Use the correct value for HW WDT stage 1
1 parent 9593c79 commit 11c0be1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

platforms/esp8266/src/esp_hw_wdt.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ void esp_hw_wdt_setup(enum esp_hw_wdt_timeout stage0_timeout,
4343
}
4444
WRITE_PERI_REG(WDT_RELOAD_STAGE0, stage0_timeout);
4545
if (stage1_timeout != ESP_HW_WDT_DISABLE) {
46-
WRITE_PERI_REG(WDT_RELOAD_STAGE1, stage0_timeout);
46+
WRITE_PERI_REG(WDT_RELOAD_STAGE1, stage1_timeout);
4747
} else {
4848
ctl |= WDT_CTL_STAGE1_DISABLE;
4949
WRITE_PERI_REG(WDT_CTL, ctl);

0 commit comments

Comments
 (0)