]> git.donarmstrong.com Git - qmk_firmware.git/commitdiff
should be using matrix_row_t
authorJeremiah <barrar@users.noreply.github.com>
Sun, 14 May 2017 00:22:38 +0000 (17:22 -0700)
committerJeremiah <barrar@users.noreply.github.com>
Sun, 14 May 2017 00:22:38 +0000 (17:22 -0700)
tmk_core/common/keyboard.c

index 0116053fbebd7e135a9817068d0a6f319d13023c..24cc28892cf826a5fbe5672c1d595648b686311d 100644 (file)
@@ -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++) {
@@ -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){