Skip to content

Commit b72c67d

Browse files
committed
defmt can format panicinfo
1 parent 956a8a6 commit b72c67d

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

src/lib.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,8 @@ pub use embedded_test_macros::tests;
1313
fn panic(info: &core::panic::PanicInfo) -> ! {
1414
error!("====================== PANIC ======================");
1515

16-
#[cfg(not(feature = "defmt"))]
1716
error!("{}", info);
1817

19-
#[cfg(feature = "defmt")]
20-
error!("{}", defmt::Display2Format(info));
21-
2218
semihosting::process::abort()
2319
}
2420

0 commit comments

Comments
 (0)