diff --git a/beginner/apps/src/bin/panic.rs b/beginner/apps/src/bin/panic.rs index befa1c7..0dd4bfa 100644 --- a/beginner/apps/src/bin/panic.rs +++ b/beginner/apps/src/bin/panic.rs @@ -4,7 +4,7 @@ use cortex_m::asm; use cortex_m_rt::entry; // this imports `beginner/apps/lib.rs` to retrieve our global logger + panicking-behavior -// use apps as _; +use apps as _; #[entry] fn main() -> ! { @@ -35,8 +35,3 @@ fn bar() { fn index() -> usize { 3 } - -#[panic_handler] -fn panic(info: &core::panic::PanicInfo) -> ! { - defmt::panic!("{}", info); -} \ No newline at end of file