mirror of
https://github.com/phil-opp/blog_os.git
synced 2025-12-16 22:37:49 +00:00
Fix queue name in keyboard::add_scancode (#780)
This commit is contained in:
@@ -1327,7 +1327,7 @@ To wake the stored `Waker`, we add a call to `WAKER.wake()` in the `add_scancode
|
|||||||
|
|
||||||
pub(crate) add_scancode(scancode: u8) {
|
pub(crate) add_scancode(scancode: u8) {
|
||||||
if let Ok(queue) = SCANCODE_QUEUE.try_get() {
|
if let Ok(queue) = SCANCODE_QUEUE.try_get() {
|
||||||
if let Err(_) = scancode_queue.push(scancode) {
|
if let Err(_) = queue.push(scancode) {
|
||||||
println!("WARNING: scancode queue full; dropping keyboard input");
|
println!("WARNING: scancode queue full; dropping keyboard input");
|
||||||
} else {
|
} else {
|
||||||
WAKER.wake(); // new
|
WAKER.wake(); // new
|
||||||
|
|||||||
Reference in New Issue
Block a user