Skip to content

Commit

Permalink
Update extended keycode count on receive
Browse files Browse the repository at this point in the history
  • Loading branch information
sekigon-gonnoc committed Mar 19, 2022
1 parent f67ba9f commit 820db19
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tmk_core/protocol/nrf/via.c
Original file line number Diff line number Diff line change
Expand Up @@ -175,8 +175,8 @@ static void set_via_bmp_item(uint8_t *data, uint8_t length) {
memcpy(&bmp_ex_keycodes[item_data[0]], &item_data[1],
sizeof(bmp_ex_keycode_t));
via_exkc_update_flag = true;
if (bmp_ex_keycode_num < item_data[0]) {
bmp_ex_keycode_num = item_data[0];
if (bmp_ex_keycode_num < item_data[0] + 1) {
bmp_ex_keycode_num = item_data[0] + 1;
}
}
break;
Expand Down

0 comments on commit 820db19

Please sign in to comment.