X-Git-Url: https://git.friedersdorff.com/?a=blobdiff_plain;ds=sidebyside;f=tmk_core%2Fcommon%2Fmatrix.h;h=bf866477f4579704f82ef337006e7dc581ea12a1;hb=ec8da5f9f509d838c200ff3d01005a209cad107e;hp=e913ee7ac6c2e81d2a1d3ac19242f1c220eb6cf7;hpb=024f0c8d3881828a173a7a335c7ffafa0eee0908;p=max%2Ftmk_keyboard.git diff --git a/tmk_core/common/matrix.h b/tmk_core/common/matrix.h index e913ee7a..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<