diff options
author | dzwdz | 2022-05-29 21:23:40 +0200 |
---|---|---|
committer | dzwdz | 2022-05-29 21:23:40 +0200 |
commit | 43de6a4d8ead1e609828ef34ad1957d34c94ee6a (patch) | |
tree | 9642501c51846ddb3edc426f948ca25dfaf6bb50 /src/init/driver | |
parent | c3e611ecf1e0f6ac5790e56bb0b21d30f5253d15 (diff) |
init/ps2: fix double key capture
Diffstat (limited to 'src/init/driver')
-rw-r--r-- | src/init/driver/ps2.c | 2 |
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) { |