Merge pull request 'Fixed #[panic_handler] for cfg(test)' (#10) from nehlich/cfg_not_test into main

Reviewed-on: ROMEO/obsw#10
This commit is contained in:
2025-03-13 15:13:32 +01:00
+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