esp-backtrace: Fix warning when using semihosting feature (#1667)
This commit is contained in:
parent
a20054c90c
commit
e680900f50
@ -110,6 +110,7 @@ fn panic_handler(info: &core::panic::PanicInfo) -> ! {
|
||||
#[cfg(feature = "semihosting")]
|
||||
semihosting::process::abort();
|
||||
|
||||
#[cfg(not(feature = "semihosting"))]
|
||||
halt();
|
||||
}
|
||||
|
||||
@ -221,6 +222,7 @@ fn exception_handler(context: &arch::TrapFrame) -> ! {
|
||||
#[cfg(feature = "semihosting")]
|
||||
semihosting::process::abort();
|
||||
|
||||
#[cfg(not(feature = "semihosting"))]
|
||||
halt();
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user