diff options
Diffstat (limited to 'converter/usb_usb/matrix.c')
| -rw-r--r-- | converter/usb_usb/matrix.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/converter/usb_usb/matrix.c b/converter/usb_usb/matrix.c index 3cdb0860d..83d5ab6c8 100644 --- a/converter/usb_usb/matrix.c +++ b/converter/usb_usb/matrix.c | |||
| @@ -81,7 +81,7 @@ bool matrix_is_on(uint8_t row, uint8_t col) { | |||
| 81 | return true; | 81 | return true; |
| 82 | } | 82 | } |
| 83 | } | 83 | } |
| 84 | for (uint8_t i = 0; i < REPORT_KEYS; i++) { | 84 | for (uint8_t i = 0; i < KEYBOARD_REPORT_KEYS; i++) { |
| 85 | if (usb_hid_keyboard_report.keys[i] == code) { | 85 | if (usb_hid_keyboard_report.keys[i] == code) { |
| 86 | return true; | 86 | return true; |
| 87 | } | 87 | } |
| @@ -96,7 +96,7 @@ uint8_t matrix_get_row(uint8_t row) { | |||
| 96 | row_bits |= usb_hid_keyboard_report.mods; | 96 | row_bits |= usb_hid_keyboard_report.mods; |
| 97 | } | 97 | } |
| 98 | 98 | ||
| 99 | for (uint8_t i = 0; i < REPORT_KEYS; i++) { | 99 | for (uint8_t i = 0; i < KEYBOARD_REPORT_KEYS; i++) { |
| 100 | if (IS_ANY(usb_hid_keyboard_report.keys[i])) { | 100 | if (IS_ANY(usb_hid_keyboard_report.keys[i])) { |
| 101 | if (row == ROW(usb_hid_keyboard_report.keys[i])) { | 101 | if (row == ROW(usb_hid_keyboard_report.keys[i])) { |
| 102 | row_bits |= ROW_BITS(usb_hid_keyboard_report.keys[i]); | 102 | row_bits |= ROW_BITS(usb_hid_keyboard_report.keys[i]); |
| @@ -110,7 +110,7 @@ uint8_t matrix_key_count(void) { | |||
| 110 | uint8_t count = 0; | 110 | uint8_t count = 0; |
| 111 | 111 | ||
| 112 | count += bitpop(usb_hid_keyboard_report.mods); | 112 | count += bitpop(usb_hid_keyboard_report.mods); |
| 113 | for (uint8_t i = 0; i < REPORT_KEYS; i++) { | 113 | for (uint8_t i = 0; i < KEYBOARD_REPORT_KEYS; i++) { |
| 114 | if (IS_ANY(usb_hid_keyboard_report.keys[i])) { | 114 | if (IS_ANY(usb_hid_keyboard_report.keys[i])) { |
| 115 | count++; | 115 | count++; |
| 116 | } | 116 | } |
