diff --git a/stm-firmware/safety/watchdog.c b/stm-firmware/safety/watchdog.c index 7b51b1b..1147b8f 100644 --- a/stm-firmware/safety/watchdog.c +++ b/stm-firmware/safety/watchdog.c @@ -98,7 +98,7 @@ int watchdog_setup(uint16_t prescaler, uint16_t reload_value) reload_value = 0xFFFFu; ret = -2; } - IWDG->RLR = 0xFFFU; + IWDG->RLR = reload_value; /** - Write enable key */ IWDG->KR = STM32_WATCHDOG_ENABLE_KEY;