Skip to content

Commit

Permalink
Use the correct value for HW WDT stage 1
Browse files Browse the repository at this point in the history
  • Loading branch information
rojer committed Jul 12, 2021
1 parent 9593c79 commit 11c0be1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion platforms/esp8266/src/esp_hw_wdt.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 11c0be1

Please sign in to comment.