X-Git-Url: https://git.friedersdorff.com/?a=blobdiff_plain;f=tmk_core%2Fcommon%2Fmatrix.h;h=bf866477f4579704f82ef337006e7dc581ea12a1;hb=83b90f4b6fe6744cababc153e3fee5ed42ee4322;hp=107ee72653894a4b4fbf35b7f0110c8fb91d72f9;hpb=1a02ebcc612e9a9c0d87e02295c7258de3a70ccc;p=max%2Ftmk_keyboard.git diff --git a/tmk_core/common/matrix.h b/tmk_core/common/matrix.h index 107ee726..bf866477 100644 --- a/tmk_core/common/matrix.h +++ b/tmk_core/common/matrix.h @@ -32,6 +32,10 @@ typedef uint32_t matrix_row_t; #error "MATRIX_COLS: invalid value" #endif +#if (MATRIX_ROWS > 255) +#error "MATRIX_ROWS must not exceed 255" +#endif + #define MATRIX_IS_ON(row, col) (matrix_get_row(row) && (1<