mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-22 09:23:16 +00:00
make the LCD panic handler Precursor-specific
This commit is contained in:
parent
2903de5b7b
commit
344dd5094b
1 changed files with 21 additions and 18 deletions
|
|
@ -5,6 +5,8 @@ use core::panic::PanicInfo;
|
|||
#[panic_handler]
|
||||
fn handle_panic(_arg: &PanicInfo) -> ! {
|
||||
println!("PANIC in PID {}: {}", crate::arch::current_pid(), _arg);
|
||||
#[cfg(any(feature = "precursor", feature = "renode"))]
|
||||
{
|
||||
use crate::platform::precursor::lcdpanic::ErrorWriter;
|
||||
use core::fmt::Write;
|
||||
if let Ok(mut writer) = ErrorWriter::new() {
|
||||
|
|
@ -24,6 +26,7 @@ fn handle_panic(_arg: &PanicInfo) -> ! {
|
|||
)
|
||||
.ok();
|
||||
}
|
||||
}
|
||||
loop {
|
||||
arch::idle();
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue