Skip to content

Commit 820db19

Browse files
Update extended keycode count on receive
1 parent f67ba9f commit 820db19

File tree

1 file changed

+2
-2
lines changed
  • tmk_core/protocol/nrf

1 file changed

+2
-2
lines changed

tmk_core/protocol/nrf/via.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -175,8 +175,8 @@ static void set_via_bmp_item(uint8_t *data, uint8_t length) {
175175
memcpy(&bmp_ex_keycodes[item_data[0]], &item_data[1],
176176
sizeof(bmp_ex_keycode_t));
177177
via_exkc_update_flag = true;
178-
if (bmp_ex_keycode_num < item_data[0]) {
179-
bmp_ex_keycode_num = item_data[0];
178+
if (bmp_ex_keycode_num < item_data[0] + 1) {
179+
bmp_ex_keycode_num = item_data[0] + 1;
180180
}
181181
}
182182
break;

0 commit comments

Comments
 (0)