From 14322aff7641b67782d393fc3df465b97126b38f Mon Sep 17 00:00:00 2001 From: Kai Ryu Date: Mon, 26 May 2014 17:31:01 +0900 Subject: [PATCH] More flexibility on matrix size --- common/keymap_in_eeprom.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/common/keymap_in_eeprom.h b/common/keymap_in_eeprom.h index 7e124785..1f98a856 100644 --- a/common/keymap_in_eeprom.h +++ b/common/keymap_in_eeprom.h @@ -32,7 +32,10 @@ along with this program. If not, see . #ifndef KEYMAPS_COUNT #define KEYMAPS_COUNT 1 #endif -#define KEYS_COUNT (KEYMAPS_COUNT * matrix_rows() * matrix_cols()) +#ifndef MATRIX_SIZE +#define MATRIX_SIZE (matrix_rows() * matrix_cols()) +#endif +#define KEYS_COUNT (KEYMAPS_COUNT * MATRIX_SIZE) typedef struct { uint16_t checksum;