mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-17 08:40:52 +00:00
modify graphics-server to ignore unimplemented opcodes
the opcode list is shared between multiple implementations, so an invalid opcode might not necessarily be a severe bug.
This commit is contained in:
parent
f37df2b1cb
commit
ef79ececb7
1 changed files with 5 additions and 1 deletions
|
|
@ -736,7 +736,11 @@ fn wrapped_main(main_thread_token: backend::MainThreadToken) -> ! {
|
||||||
}
|
}
|
||||||
Some(GfxOpcode::Quit) => break,
|
Some(GfxOpcode::Quit) => break,
|
||||||
None => {
|
None => {
|
||||||
log::error!("received GfxOpcode scalar that is not handled");
|
log::error!("Received invalid GfxOpcode. Ignoring.");
|
||||||
|
}
|
||||||
|
_ => {
|
||||||
|
// This is perfectly normal because not all opcodes are handled by all platforms.
|
||||||
|
log::debug!("Invalid or unhandled opcode: {:?}", op);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue