esp-backtrace: Fix warning when using semihosting feature (#1667)

This commit is contained in:
Björn Quentin 2024-06-07 11:49:59 +02:00 committed by GitHub
parent a20054c90c
commit e680900f50
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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();
}