From 43de6a4d8ead1e609828ef34ad1957d34c94ee6a Mon Sep 17 00:00:00 2001 From: dzwdz Date: Sun, 29 May 2022 21:23:40 +0200 Subject: init/ps2: fix double key capture --- src/init/driver/ps2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/init/driver') diff --git a/src/init/driver/ps2.c b/src/init/driver/ps2.c index 5e88b35..b2d42e5 100644 --- a/src/init/driver/ps2.c +++ b/src/init/driver/ps2.c @@ -41,7 +41,7 @@ static void parse_scancode(uint8_t s) { keys[s] = down; char c = shift ? keymap_upper[s] : keymap_lower[s]; - ring_put1b((void*)&backlog, c); + if (down) ring_put1b((void*)&backlog, c); } static void main_loop(void) { -- cgit v1.2.3