Skip to content

Commit c1af91c

Browse files
committed
Install timeout when during setup of watchdog
Signed-off-by: Karl Kristian Dyrholm Torp <[email protected]>
1 parent 442f5a4 commit c1af91c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

boot/zephyr/include/mcuboot_config/mcuboot_config.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -392,6 +392,7 @@
392392
const struct device* wdt = \
393393
DEVICE_DT_GET(DT_ALIAS(watchdog0)); \
394394
if (device_is_ready(wdt)) { \
395+
MCUBOOT_WATCHDOG_INSTALL_TIMEOUT(); \
395396
wdt_setup(wdt, 0); \
396397
} \
397398
} while (0)
@@ -401,7 +402,6 @@
401402
const struct device* wdt = \
402403
DEVICE_DT_GET(DT_ALIAS(watchdog0)); \
403404
if (device_is_ready(wdt)) { \
404-
MCUBOOT_WATCHDOG_INSTALL_TIMEOUT(); \
405405
wdt_feed(wdt, 0); \
406406
} \
407407
} while (0)

0 commit comments

Comments
 (0)