Fixed #[panic_handler] for cfg(test)

This commit is contained in:
paul nehlich
2025-03-11 12:33:30 +01:00
parent 10b98c3835
commit 6b1fd91a70
+1
View File
@@ -5,6 +5,7 @@ extern "C" {
fn done();
}
#[cfg(not(test))]
#[panic_handler]
fn panic(panic: &PanicInfo<'_>) -> ! {
// unsafe { this breaks in ISR