panic: fmt

master
Robert Jördens 2021-03-03 17:00:29 +01:00
parent 843173f29d
commit 475f2b3dd2
1 changed files with 2 additions and 1 deletions

View File

@ -49,7 +49,8 @@ fn panic(_info: &core::panic::PanicInfo) -> ! {
let gpiod = unsafe { &*hal::stm32::GPIOD::ptr() };
// Turn on both red LEDs, FP_LED_1, FP_LED_3
gpiod.odr.modify(|_, w| w.odr6().high().odr12().high());
loop { // Halt
loop {
// Halt
core::sync::atomic::compiler_fence(
core::sync::atomic::Ordering::SeqCst,
);