Skip to content

Commit

Permalink
pico hid fix for old gcc
Browse files Browse the repository at this point in the history
  • Loading branch information
mdevaev committed Aug 4, 2023
1 parent 750b921 commit b2c9236
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion hid/pico/src/ph_usb.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand All @@ -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);
}
Expand Down

0 comments on commit b2c9236

Please sign in to comment.