mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-18 08:52:45 +00:00
fixup config flags on keyboard option
This commit is contained in:
parent
cb30edd8ab
commit
6f8590e4e7
1 changed files with 3 additions and 5 deletions
|
|
@ -791,8 +791,9 @@ fn main() -> ! {
|
||||||
else { vibe = false }
|
else { vibe = false }
|
||||||
}),
|
}),
|
||||||
Some(Opcode::BlockingKeyListener) => {
|
Some(Opcode::BlockingKeyListener) => {
|
||||||
|
#[cfg(feature="rawserial")]
|
||||||
if blocking_queue.len() != 0 {
|
if blocking_queue.len() != 0 {
|
||||||
// we have a pending byte in the queue, return it
|
// we have a pending byte in the queue, return it.
|
||||||
let k_prime = blocking_queue.pop_front().unwrap();
|
let k_prime = blocking_queue.pop_front().unwrap();
|
||||||
xous::return_scalar2(msg.sender, k_prime, 0).unwrap();
|
xous::return_scalar2(msg.sender, k_prime, 0).unwrap();
|
||||||
} else {
|
} else {
|
||||||
|
|
@ -800,10 +801,7 @@ fn main() -> ! {
|
||||||
// the sender will remain blocked until the return value is generated
|
// the sender will remain blocked until the return value is generated
|
||||||
blocking_listener.push(msg.sender);
|
blocking_listener.push(msg.sender);
|
||||||
}
|
}
|
||||||
},
|
#[cfg(not(feature="rawserial"))]
|
||||||
Some(Opcode::BlockingKeyListener) => {
|
|
||||||
// by simply storing the sender address and not returning a value,
|
|
||||||
// the sender will remain blocked until the return value is generated
|
|
||||||
blocking_listener.push(msg.sender);
|
blocking_listener.push(msg.sender);
|
||||||
},
|
},
|
||||||
Some(Opcode::RegisterListener) => {
|
Some(Opcode::RegisterListener) => {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue