forked from M-Labs/ionpak-thermostat
main: print panic info with semihosting
This commit is contained in:
parent
1395e8b410
commit
8163d083b9
|
@ -31,6 +31,8 @@ macro_rules! println {
|
||||||
#[panic_handler]
|
#[panic_handler]
|
||||||
pub fn panic_fmt(info: &core::panic::PanicInfo) -> ! {
|
pub fn panic_fmt(info: &core::panic::PanicInfo) -> ! {
|
||||||
println!("{}", info);
|
println!("{}", info);
|
||||||
|
let mut stdout = hio::hstdout().unwrap();
|
||||||
|
let _ = writeln!(stdout, "{}", info);
|
||||||
loop {}
|
loop {}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue