forked from ROMEO/fsw-ws
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:
@@ -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