From 17659e2e4473575c32fc8cad95fd859947fc493f Mon Sep 17 00:00:00 2001 From: Dario Nieuwenhuis Date: Fri, 20 Aug 2021 14:23:24 +0200 Subject: nrf/wdt: add handle steal --- examples/nrf/src/bin/wdt.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'examples') diff --git a/examples/nrf/src/bin/wdt.rs b/examples/nrf/src/bin/wdt.rs index 53df7b0b7..eaa0b5ee1 100644 --- a/examples/nrf/src/bin/wdt.rs +++ b/examples/nrf/src/bin/wdt.rs @@ -25,7 +25,7 @@ async fn main(_spawner: Spawner, p: Peripherals) { // in the WDT interrupt. The core resets 2 ticks after firing the interrupt. config.run_during_debug_halt = false; - let (_wdt, [mut handle]) = match Watchdog::try_new::<1>(p.WDT, config) { + let (_wdt, [mut handle]) = match Watchdog::try_new(p.WDT, config) { Ok(x) => x, Err(_) => { info!("Watchdog already active with wrong config, waiting for it to timeout..."); -- cgit