mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-18 08:52:45 +00:00
this change to main.rs is needed to support the error handler
This commit is contained in:
parent
0bb5ae95b9
commit
6cd5a23893
1 changed files with 9 additions and 1 deletions
|
|
@ -82,7 +82,15 @@ pub unsafe extern "C" fn rust_entry() -> ! {
|
||||||
});
|
});
|
||||||
|
|
||||||
// Process any command line requests
|
// Process any command line requests
|
||||||
repl.process();
|
match repl.process() {
|
||||||
|
Err(e) => {
|
||||||
|
if let Some(m) = e.message {
|
||||||
|
crate::println!("{}", m);
|
||||||
|
repl.abort_cmd();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
_ => (),
|
||||||
|
};
|
||||||
|
|
||||||
// Animate the LED flashing to indicate repl loop is running
|
// Animate the LED flashing to indicate repl loop is running
|
||||||
delay(1);
|
delay(1);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue