mirror of
https://github.com/firewalkwithm3/qmk_firmware.git
synced 2024-11-22 19:40:29 +08:00
Merge remote-tracking branch 'origin/master' into develop
This commit is contained in:
commit
9c9670b25f
|
@ -189,9 +189,9 @@ static matrix_row_t get_real_keys(uint8_t row, matrix_row_t rowdata) {
|
||||||
matrix_row_t out = 0;
|
matrix_row_t out = 0;
|
||||||
for (uint8_t col = 0; col < MATRIX_COLS; col++) {
|
for (uint8_t col = 0; col < MATRIX_COLS; col++) {
|
||||||
// read each key in the row data and check if the keymap defines it as a real key
|
// read each key in the row data and check if the keymap defines it as a real key
|
||||||
if (keycode_at_keymap_location(0, row, col) && (rowdata & (1 << col))) {
|
if (keycode_at_keymap_location(0, row, col) && (rowdata & (((matrix_row_t)1) << col))) {
|
||||||
// this creates new row data, if a key is defined in the keymap, it will be set here
|
// this creates new row data, if a key is defined in the keymap, it will be set here
|
||||||
out |= 1 << col;
|
out |= ((matrix_row_t)1) << col;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return out;
|
return out;
|
||||||
|
|
Loading…
Reference in a new issue