Skip to content

Commit

Permalink
should be using matrix_row_t
Browse files Browse the repository at this point in the history
  • Loading branch information
barrar committed May 14, 2017
1 parent acd3e97 commit 7b7e285
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tmk_core/common/keyboard.c
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,9 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.


#ifdef MATRIX_HAS_GHOST
static uint16_t matrix_ghost_check[MATRIX_ROWS];
static matrix_row_t matrix_ghost_check[MATRIX_ROWS];

static inline bool countones(uint16_t data)
static inline bool countones(matrix_row_t data)
{
int count = 0;
for (int col = 0; col < MATRIX_COLS; col++) {
Expand All @@ -77,7 +77,7 @@ static inline bool countones(uint16_t data)
}
return false;
}
static inline bool has_ghost_in_row(uint8_t row, uint16_t rowdata)
static inline bool has_ghost_in_row(uint8_t row, matrix_row_t rowdata)
{
rowdata &= matrix_ghost_check[row];
if (((rowdata - 1) & rowdata) == 0){
Expand Down

0 comments on commit 7b7e285

Please sign in to comment.