]> git.donarmstrong.com Git - qmk_firmware.git/blobdiff - tmk_core/common/matrix.h
add col type defines
[qmk_firmware.git] / tmk_core / common / matrix.h
index 84e066c673a2130d297b77f2b451f39e17f16928..e5665bf40a3f52baabfdd8a36d0ef89baf75fa01 100644 (file)
@@ -38,7 +38,7 @@ typedef  uint16_t   matrix_col_t;
 #elif (MATRIX_ROWS <= 32)
 typedef  uint32_t   matrix_col_t;
 #else
-#error "MATRIX_COLS: invalid value"
+#error "MATRIX_ROWS: invalid value"
 #endif
 
 #define MATRIX_IS_ON(row, col)  (matrix_get_row(row) && (1<<col))
@@ -60,7 +60,7 @@ void matrix_init(void);
 uint8_t matrix_scan(void);
 /* whether modified from previous scan. used after matrix_scan. */
 bool matrix_is_modified(void) __attribute__ ((deprecated));
-/* whether a swtich is on */
+/* whether a switch is on */
 bool matrix_is_on(uint8_t row, uint8_t col);
 /* matrix state on row */
 matrix_row_t matrix_get_row(uint8_t row);