Skip to content

Commit

Permalink
Merge pull request RIOT-OS#20755 from Enoch247/fix-periph_wdt_auto_st…
Browse files Browse the repository at this point in the history
…art-module

drivers/periph_wdt: fix auto starting of watchdog timer
  • Loading branch information
mguetschow authored Jun 20, 2024
2 parents aee2ea6 + ad24c08 commit 0ebb657
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions drivers/periph_common/init.c
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,10 @@ void periph_init(void)
usbdev_init_lowlevel();
#endif

#if defined(MODULE_PERIPH_INIT_WDT) && WDT_HAS_INIT
wdt_init();
#if defined(MODULE_PERIPH_INIT_WDT)
if (WDT_HAS_INIT) {
wdt_init();
}

if (IS_ACTIVE(MODULE_PERIPH_WDT_AUTO_START)) {
wdt_setup_reboot(CONFIG_PERIPH_WDT_WIN_MIN_MS, CONFIG_PERIPH_WDT_WIN_MAX_MS);
Expand Down

0 comments on commit 0ebb657

Please sign in to comment.