From c040ef7579a763c75b7ee94aeb657f5a65406555 Mon Sep 17 00:00:00 2001 From: Tim Docker Date: Fri, 7 May 2021 08:28:04 +1000 Subject: [PATCH] Fix blinky_timer_irq_example.rs Depending on the microcontroller and optimisation flags, the existing code can run into this issue: https://developer.arm.com/documentation/ka003795/latest --- examples/blinky_timer_irq.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/blinky_timer_irq.rs b/examples/blinky_timer_irq.rs index cc9bf57c..36fab248 100644 --- a/examples/blinky_timer_irq.rs +++ b/examples/blinky_timer_irq.rs @@ -62,8 +62,8 @@ fn TIM2() { }) }); - let _ = led.toggle(); let _ = tim.wait(); + let _ = led.toggle(); } #[entry]