summaryrefslogtreecommitdiff
path: root/hid/pico/src/ph_ps2_kbd.c
diff options
context:
space:
mode:
authorNo0ne <[email protected]>2023-09-08 09:29:15 +0200
committerGitHub <[email protected]>2023-09-08 10:29:15 +0300
commita03c3c2367fc950c7ea8d4557fc24de8580dfd74 (patch)
tree12cf5f6367e141cf5d114e9e43228a4b0e78cfe3 /hid/pico/src/ph_ps2_kbd.c
parent19c1c7b933619d82695851831aa0a063f2e027a1 (diff)
pico hid: ps/2 mouse support (#148)
Diffstat (limited to 'hid/pico/src/ph_ps2_kbd.c')
-rw-r--r--hid/pico/src/ph_ps2_kbd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/hid/pico/src/ph_ps2_kbd.c b/hid/pico/src/ph_ps2_kbd.c
index f9e0caa3..e2fd7faf 100644
--- a/hid/pico/src/ph_ps2_kbd.c
+++ b/hid/pico/src/ph_ps2_kbd.c
@@ -213,10 +213,10 @@ void ph_ps2_kbd_receive(u8 byte, u8 prev_byte) {
void ph_ps2_kbd_task(void) {
ph_ps2_phy_task(&ph_ps2_kbd);
- ph_g_ps2_kbd_online = ph_ps2_kbd_scanning && ph_ps2_kbd.idle;
+ ph_g_ps2_kbd_online = ph_ps2_kbd_scanning && !ph_ps2_kbd.busy;
}
void ph_ps2_kbd_init(u8 gpio) {
ph_ps2_phy_init(&ph_ps2_kbd, pio0, gpio, &ph_ps2_kbd_receive);
ph_ps2_kbd_reset();
-} \ No newline at end of file
+}