aboutsummaryrefslogtreecommitdiffstats
path: root/tmk_core
diff options
context:
space:
mode:
authorGravatar eltang <etang2099@gmail.com>2016-04-02 09:13:13 -0700
committerGravatar eltang <etang2099@gmail.com>2016-04-02 09:13:13 -0700
commitfddccc95fe480a2ed039ffdac6aa9f3fac1f444f (patch)
treefa34ed2681081e133deb40702e384492b812d9ae /tmk_core
parent680301e3e3f837aa4f8bda403af3fc42156516fa (diff)
downloadqmk_firmware-fddccc95fe480a2ed039ffdac6aa9f3fac1f444f.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 8735c7d64..a3c5b4c5a 100644
--- a/tmk_core/common/action.c
+++ b/tmk_core/common/action.c
@@ -95,7 +95,7 @@ action_t store_or_get_action(bool pressed, keypos_t key)
else {
layer = 0;
for (uint8_t bit_number = 0; bit_number <= 4; bit_number++) {
- layer |= (uint8_t)(!!(source_layers_cache[bit_number][storage_row] & (1U << storage_bit))) << bit_number;
+ layer |= (uint8_t)((source_layers_cache[bit_number][storage_row] & (1U << storage_bit)) != 0) << bit_number;
}
}
return action_for_key(layer, key);