From 9365e693018fa794e92b37a866ee32c5c3a61928 Mon Sep 17 00:00:00 2001 From: Kai Ryu Date: Fri, 30 May 2014 19:52:06 +0900 Subject: [PATCH] kimera: Fix a bug of program memory const --- keyboard/kimera/kimera.c | 71 +++++++++++++++++++++------------------- keyboard/kimera/kimera.h | 3 ++ 2 files changed, 40 insertions(+), 34 deletions(-) diff --git a/keyboard/kimera/kimera.c b/keyboard/kimera/kimera.c index 73d97892..edfaae14 100644 --- a/keyboard/kimera/kimera.c +++ b/keyboard/kimera/kimera.c @@ -19,6 +19,7 @@ along with this program. If not, see . #include #include +#include #include "kimera.h" #include "debug.h" @@ -42,6 +43,7 @@ uint16_t shift_out_cache = 0; void kimera_init(void) { // read config + write_matrix_mapping(); if (read_matrix_mapping()) { write_matrix_mapping(); } @@ -70,9 +72,9 @@ uint8_t read_matrix_mapping(void) return error; } - for (uint8_t i = 0; i < MUX_COUNT; i++) { - mux_mapping[i] = mux_config & (1<