Skip to content

Commit

Permalink
whoops
Browse files Browse the repository at this point in the history
  • Loading branch information
barrar committed May 14, 2017
1 parent b9b2244 commit 84395e8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tmk_core/common/keyboard.c
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ extern const uint16_t keymaps[][MATRIX_ROWS][MATRIX_COLS];
static matrix_row_t get_real_keys(uint8_t row, matrix_row_t rowdata){
matrix_row_t out = 0;
for (int col = 0; col < MATRIX_COLS; col++) {
if (pgm_read_byte(&keymaps[0][row][col]) && ((rowdata & (1<<col)))){
if (pgm_read_byte(&keymaps[0][row][col]) && (rowdata & (1<<col))){
out |= 1<<col;
}
}
Expand All @@ -83,7 +83,7 @@ static inline bool countones(matrix_row_t row)
static inline bool has_ghost_in_row(uint8_t row, matrix_row_t rowdata)
{
rowdata = get_real_keys(row, rowdata);
if (((rowdata - 1) & rowdata) == 0){
if ((countones(rowdata)) == 0){
return false;
}
/* No ghost exists when less than 2 keys are down on the row.
Expand Down

0 comments on commit 84395e8

Please sign in to comment.