mirror of
https://github.com/phil-opp/blog_os.git
synced 2025-12-16 14:27:49 +00:00
Fix small typo in add_scancode (#841)
This commit is contained in:
@@ -1317,7 +1317,7 @@ To wake the stored `Waker`, we add a call to `WAKER.wake()` in the `add_scancode
|
||||
```rust
|
||||
// in src/task/keyboard.rs
|
||||
|
||||
pub(crate) add_scancode(scancode: u8) {
|
||||
pub(crate) fn add_scancode(scancode: u8) {
|
||||
if let Ok(queue) = SCANCODE_QUEUE.try_get() {
|
||||
if let Err(_) = queue.push(scancode) {
|
||||
println!("WARNING: scancode queue full; dropping keyboard input");
|
||||
|
||||
Reference in New Issue
Block a user