Browse Source

Update action.c

eltang 9 years ago
parent
commit
6c8e374d57
1 changed files with 1 additions and 1 deletions
  1. 1 1
      tmk_core/common/action.c

+ 1 - 1
tmk_core/common/action.c

@@ -55,7 +55,7 @@ void action_exec(keyevent_t event)
 
 
 #if !defined(NO_ACTION_LAYER) && defined(PREVENT_STUCK_MODIFIERS)
 #if !defined(NO_ACTION_LAYER) && defined(PREVENT_STUCK_MODIFIERS)
 bool disable_action_cache = false;
 bool disable_action_cache = false;
-uint8_t source_layers_cache[5][((MATRIX_ROWS * MATRIX_COLS) / 8) ? ((MATRIX_ROWS * MATRIX_COLS) / 8) : 1] = {0};
+uint8_t source_layers_cache[5][((MATRIX_ROWS * MATRIX_COLS + 7) / 8)] = {0};
 
 
 void process_action_nocache(keyrecord_t *record)
 void process_action_nocache(keyrecord_t *record)
 {
 {