mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-17 08:40:52 +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
|
||||
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
|
||||
delay(1);
|
||||
|
|
|
|||
Loading…
Reference in a new issue