summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordzwdz2022-05-29 21:23:40 +0200
committerdzwdz2022-05-29 21:23:40 +0200
commit43de6a4d8ead1e609828ef34ad1957d34c94ee6a (patch)
tree9642501c51846ddb3edc426f948ca25dfaf6bb50 /src
parentc3e611ecf1e0f6ac5790e56bb0b21d30f5253d15 (diff)
init/ps2: fix double key capture
Diffstat (limited to 'src')
-rw-r--r--src/init/driver/ps2.c2
1 files changed, 1 insertions, 1 deletions
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) {