From c79f54c67b8a3dc647ff6098e94e1548e49c5d20 Mon Sep 17 00:00:00 2001 From: Giampaolo Mancini Date: Mon, 14 Oct 2019 23:11:33 +0200 Subject: [PATCH] Remove default conf macro because typo in nRF SDK --- targets/TARGET_NORDIC/TARGET_NRF5x/TARGET_NRF52/watchdog_api.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/targets/TARGET_NORDIC/TARGET_NRF5x/TARGET_NRF52/watchdog_api.c b/targets/TARGET_NORDIC/TARGET_NRF5x/TARGET_NRF52/watchdog_api.c index 9b255678e1..40e9ba171d 100644 --- a/targets/TARGET_NORDIC/TARGET_NRF5x/TARGET_NRF52/watchdog_api.c +++ b/targets/TARGET_NORDIC/TARGET_NRF5x/TARGET_NRF52/watchdog_api.c @@ -35,10 +35,11 @@ watchdog_status_t hal_watchdog_init(const watchdog_config_t *config) return WATCHDOG_STATUS_INVALID_ARGUMENT; } - nrfx_wdt_config_t nrf_cfg = NRFX_WDT_DEAFULT_CONFIG; + nrfx_wdt_config_t nrf_cfg; nrf_cfg.reload_value = config->timeout_ms; nrf_cfg.behaviour = NRF_WDT_BEHAVIOUR_RUN_SLEEP_HALT; + nrf_cfg.interrupt_priority = NRFX_WDT_CONFIG_NO_IRQ; err_code = nrfx_wdt_init(&nrf_cfg, dummy); if (err_code != NRFX_SUCCESS) {