diff options
author | Maxim Devaev <[email protected]> | 2023-08-04 03:10:00 +0300 |
---|---|---|
committer | Maxim Devaev <[email protected]> | 2023-08-04 03:10:00 +0300 |
commit | b2c9236721c471dc80197dc6522db54d7512c052 (patch) | |
tree | d502cc74483bd228268b22c5e75efb85f87d2661 | |
parent | 750b9214fe38e9bac27c385dbf626288f8f9aafb (diff) |
pico hid fix for old gcc
-rw-r--r-- | hid/pico/src/ph_usb.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/hid/pico/src/ph_usb.c b/hid/pico/src/ph_usb.c index b9b3b672..fbca5e90 100644 --- a/hid/pico/src/ph_usb.c +++ b/hid/pico/src/ph_usb.c @@ -132,7 +132,7 @@ void ph_usb_kbd_send_key(u8 key, bool state) { } } _kbd_keys[pos >= 0 ? pos : 0] = key; - already_pressed: + // already_pressed: } else { for (u8 i = 0; i < 6; ++i) { if (_kbd_keys[i] == key) { @@ -142,6 +142,7 @@ void ph_usb_kbd_send_key(u8 key, bool state) { } } } + already_pressed: // Old GCC doesn't like ^ that label in the end of block _kbd_sync_report(true); } |