use asm::udf in panic-log

to match panic-probe behavior
UDF makes probe-run exit with a non-zero exit code
This commit is contained in:
Jorge Aparicio 2021-01-21 14:00:40 +01:00
parent 291110e75d
commit 49a254f8ce

View file

@ -8,7 +8,6 @@ use cortex_m::asm;
fn panic(info: &PanicInfo) -> ! {
log::error!("{}", info);
loop {
asm::bkpt()
}
// abort instruction: triggers a HardFault exception which causes probe-run to exit
asm::udf()
}