mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-18 08:52:45 +00:00
ahem...actually harmonize
This commit is contained in:
parent
ebd0f69d20
commit
46cdbcf18d
1 changed files with 3 additions and 2 deletions
|
|
@ -27,8 +27,9 @@ fn keyboard_service() {
|
||||||
|
|
||||||
loop {
|
loop {
|
||||||
let msg = xous::receive_message(kbd_sid).unwrap(); // this blocks until we get a message
|
let msg = xous::receive_message(kbd_sid).unwrap(); // this blocks until we get a message
|
||||||
log::debug!("Message: {:?}", msg);
|
let op = FromPrimitive::from_usize(msg.body.id());
|
||||||
match FromPrimitive::from_usize(msg.body.id()) {
|
log::debug!("{:?}", op);
|
||||||
|
match op {
|
||||||
Some(KeyboardOpcode::BlockingKeyListener) => {
|
Some(KeyboardOpcode::BlockingKeyListener) => {
|
||||||
blocking_listener.push(msg.sender);
|
blocking_listener.push(msg.sender);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue