diff options
Diffstat (limited to 'tmk_core/common/action_layer.c')
-rw-r--r-- | tmk_core/common/action_layer.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tmk_core/common/action_layer.c b/tmk_core/common/action_layer.c index f3cd381ab..62375dfbf 100644 --- a/tmk_core/common/action_layer.c +++ b/tmk_core/common/action_layer.c | |||
@@ -219,7 +219,7 @@ void layer_debug(void) | |||
219 | } | 219 | } |
220 | #endif | 220 | #endif |
221 | 221 | ||
222 | #if !defined(NO_ACTION_LAYER) && defined(PREVENT_STUCK_MODIFIERS) | 222 | #if !defined(NO_ACTION_LAYER) && !defined(STRICT_LAYER_RELEASE) |
223 | uint8_t source_layers_cache[(MATRIX_ROWS * MATRIX_COLS + 7) / 8][MAX_LAYER_BITS] = {{0}}; | 223 | uint8_t source_layers_cache[(MATRIX_ROWS * MATRIX_COLS + 7) / 8][MAX_LAYER_BITS] = {{0}}; |
224 | 224 | ||
225 | void update_source_layers_cache(keypos_t key, uint8_t layer) | 225 | void update_source_layers_cache(keypos_t key, uint8_t layer) |
@@ -263,7 +263,7 @@ uint8_t read_source_layers_cache(keypos_t key) | |||
263 | */ | 263 | */ |
264 | action_t store_or_get_action(bool pressed, keypos_t key) | 264 | action_t store_or_get_action(bool pressed, keypos_t key) |
265 | { | 265 | { |
266 | #if !defined(NO_ACTION_LAYER) && defined(PREVENT_STUCK_MODIFIERS) | 266 | #if !defined(NO_ACTION_LAYER) && !defined(STRICT_LAYER_RELEASE) |
267 | if (disable_action_cache) { | 267 | if (disable_action_cache) { |
268 | return layer_switch_get_action(key); | 268 | return layer_switch_get_action(key); |
269 | } | 269 | } |