aboutsummaryrefslogtreecommitdiffstats
path: root/tmk_core
diff options
context:
space:
mode:
authorGravatar Eric-L-T <etang2099@gmail.com>2016-04-01 20:04:13 -0700
committerGravatar Eric-L-T <etang2099@gmail.com>2016-04-01 20:04:13 -0700
commitf5365d1c1c619c5cb85b9b1ba97ebd04a7f56e05 (patch)
treea2e201a47d89ac72b29a4e353676197a08834ee9 /tmk_core
parent307f1dee21ba8ffc94d50b6b9338d54fa2e4d191 (diff)
downloadqmk_firmware-f5365d1c1c619c5cb85b9b1ba97ebd04a7f56e05.tar.gz
Update action.c
Diffstat (limited to 'tmk_core')
-rw-r--r--tmk_core/common/action.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tmk_core/common/action.c b/tmk_core/common/action.c
index eecfdbb6d..f6fc8b005 100644
--- a/tmk_core/common/action.c
+++ b/tmk_core/common/action.c
@@ -89,7 +89,7 @@ action_t store_or_get_action(bool pressed, keypos_t key)
if (pressed) {
layer = layer_switch_get_layer(key);
for (uint8_t bit_number = 0; bit_number <= 4; bit_number++) {
- source_layers_cache[bit_number][storage_row] ^= (-(!!(layer & (1U << bit_number)) ^ source_layers_cache[bit_number][storage_row])) & (1U << storage_bit);
+ source_layers_cache[bit_number][storage_row] ^= (-(bool)((layer & (1U << bit_number)) != 0) ^ source_layers_cache[bit_number][storage_row])) & (1U << storage_bit);
}
} else {
layer = 0;