Skip to content

Commit 017c8d2

Browse files
committed
Remove default conf macro because typo in nRF SDK
1 parent 8f8ace8 commit 017c8d2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

targets/TARGET_NORDIC/TARGET_NRF5x/TARGET_NRF52/watchdog_api.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,11 @@ watchdog_status_t hal_watchdog_init(const watchdog_config_t *config)
3535
return WATCHDOG_STATUS_INVALID_ARGUMENT;
3636
}
3737

38-
nrfx_wdt_config_t nrf_cfg = NRFX_WDT_DEAFULT_CONFIG;
38+
nrfx_wdt_config_t nrf_cfg;
3939

4040
nrf_cfg.reload_value = config->timeout_ms;
4141
nrf_cfg.behaviour = NRF_WDT_BEHAVIOUR_RUN_SLEEP_HALT;
42+
nrf_cfg.interrupt_priority = NRFX_WDT_IRQ_CONFIG;
4243

4344
err_code = nrfx_wdt_init(&nrf_cfg, dummy);
4445
if (err_code != NRFX_SUCCESS) {

0 commit comments

Comments
 (0)