Fixed #[panic_handler] for cfg(test)
This commit is contained in:
1 parent
10b98c3835
commit
6b1fd91a70
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