From e5bf80061e14906c468877d61af3f8d12fe5eb19 Mon Sep 17 00:00:00 2001 From: Kai Ryu Date: Fri, 30 May 2014 10:56:57 +0900 Subject: [PATCH] kimera: Reset matrix mapping also when config is 0 --- keyboard/kimera/kimera.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/keyboard/kimera/kimera.c b/keyboard/kimera/kimera.c index a911c496..73d97892 100644 --- a/keyboard/kimera/kimera.c +++ b/keyboard/kimera/kimera.c @@ -20,6 +20,7 @@ along with this program. If not, see . #include #include #include "kimera.h" +#include "debug.h" uint8_t mux_mapping[MUX_COUNT] = { MUX_FOR_ROW, MUX_FOR_COL, MUX_FOR_COL, MUX_FOR_COL @@ -64,7 +65,7 @@ uint8_t read_matrix_mapping(void) col_max_count = 0; mux_config = eeprom_read_byte(EECONFIG_MUX_MAPPING); - if (mux_config & (1<<7)) { + if (mux_config == 0 || (mux_config & (1<<7))) { error++; return error; }