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:
commit
e3b7fb48f1
1 file changed
+1
@@ -5,6 +5,7 @@ extern "C" {
|
||||
fn done();
|
||||
}
|
||||
|
||||
#[cfg(not(test))]
|
||||
#[panic_handler]
|
||||
fn panic(panic: &PanicInfo<'_>) -> ! {
|
||||
// unsafe { this breaks in ISR
|
||||
|
||||
Reference in new issue
Block a user