From 7442dc40a12bd61d6a77fafbc1ea031a2b51937a Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Thu, 21 Jan 2021 14:40:20 +0100 Subject: Fixed stray keyboard characters --- kernel/drivers/keyboard.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'kernel/drivers') diff --git a/kernel/drivers/keyboard.c b/kernel/drivers/keyboard.c index 7e295c2..744ca99 100644 --- a/kernel/drivers/keyboard.c +++ b/kernel/drivers/keyboard.c @@ -76,6 +76,11 @@ u32 keyboard_ready() return !stack_empty(queue); } +void keyboard_reset() +{ + stack_clear(queue); +} + void keyboard_install(void) { //keyboard_rate(); TODO: Fix keyboard rate? -- cgit v1.2.3