From e64e69051212c5b0b5d4bd382ab2ae8aa4b19dd8 Mon Sep 17 00:00:00 2001 From: Jorge Aparicio Date: Sat, 10 Nov 2018 00:02:00 +0100 Subject: [PATCH] use NVIC::pend instead of the deprecated NVIC.set_pending --- examples/device.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/device.rs b/examples/device.rs index 6105aaa..8205237 100644 --- a/examples/device.rs +++ b/examples/device.rs @@ -51,7 +51,7 @@ fn main() -> ! { while !syst.has_wrapped() {} // trigger the `EXTI0` interrupt - nvic.set_pending(Interrupt::EXTI0); + NVIC::pend(Interrupt::EXTI0); } }