diff options
author | Joel Challis <git@zvecr.com> | 2023-02-10 21:10:14 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-10 21:10:14 +0000 |
commit | 1d0b4c8d38794dc019ecb224f2992b4ddfa70839 (patch) | |
tree | 48e0423bcafbb2fa680c7bc5199aba8794665339 /keyboards/converter | |
parent | 2ffdec5dc2a5cb350998168e76d7916e2d9728fc (diff) |
Tidy up use of keycode range helpers (#19756)
Diffstat (limited to 'keyboards/converter')
-rw-r--r-- | keyboards/converter/usb_usb/custom_matrix.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/keyboards/converter/usb_usb/custom_matrix.cpp b/keyboards/converter/usb_usb/custom_matrix.cpp index e94b6b07fb..8b5fd4451a 100644 --- a/keyboards/converter/usb_usb/custom_matrix.cpp +++ b/keyboards/converter/usb_usb/custom_matrix.cpp @@ -189,7 +189,7 @@ extern "C" { bool matrix_is_on(uint8_t row, uint8_t col) { uint8_t code = CODE(row, col); - if (IS_MOD(code)) { + if (IS_MODIFIER_KEYCODE(code)) { if (local_keyboard_report.mods & ROW_BITS(code)) { return true; } @@ -205,7 +205,7 @@ extern "C" { matrix_row_t matrix_get_row(uint8_t row) { uint16_t row_bits = 0; - if (IS_MOD(CODE(row, 0)) && local_keyboard_report.mods) { + if (IS_MODIFIER_KEYCODE(CODE(row, 0)) && local_keyboard_report.mods) { row_bits |= local_keyboard_report.mods; } |