Fix reversed ghosting correction
This commit is contained in:
parent
e67f3c1bc7
commit
e51adc4a56
@ -133,9 +133,9 @@ bool has_matrix_changed(matrix_row_t current_matrix[]) {
|
|||||||
|
|
||||||
// OK, this is nasty, still not sure why its happening, but
|
// OK, this is nasty, still not sure why its happening, but
|
||||||
// this 3 key combo leads to ghosting of the 4th(the one missing from correct)
|
// this 3 key combo leads to ghosting of the 4th(the one missing from correct)
|
||||||
static const uint16_t ghost1_row2 = 0B0000010000100000;
|
static const uint16_t ghost1_row2 = 0B0000010000100000;
|
||||||
static const uint16_t ghost1_row3 = 0B0000100000100000;
|
static const uint16_t ghost1_row3 = 0B0000100000100000;
|
||||||
static const matrix_row_t ghost1_row3_correct = 0B0000000000010000;
|
static const matrix_row_t ghost1_row3_correct = 0B0000100000000000;
|
||||||
|
|
||||||
void fix_ghosting_issue(matrix_row_t current_matrix[]) {
|
void fix_ghosting_issue(matrix_row_t current_matrix[]) {
|
||||||
if (current_matrix[1] & ghost1_row2 && current_matrix[2] & ghost1_row3) {
|
if (current_matrix[1] & ghost1_row2 && current_matrix[2] & ghost1_row3) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user