diff options
author | eltang <etang2099@gmail.com> | 2016-04-02 06:48:44 -0700 |
---|---|---|
committer | eltang <etang2099@gmail.com> | 2016-04-02 06:48:44 -0700 |
commit | 680301e3e3f837aa4f8bda403af3fc42156516fa (patch) | |
tree | b34dd674cfa47fc88189cab15f62ca8dbd3fb047 /tmk_core | |
parent | f5365d1c1c619c5cb85b9b1ba97ebd04a7f56e05 (diff) |
Update action.c
Diffstat (limited to 'tmk_core')
-rw-r--r-- | tmk_core/common/action.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tmk_core/common/action.c b/tmk_core/common/action.c index f6fc8b0056..8735c7d648 100644 --- a/tmk_core/common/action.c +++ b/tmk_core/common/action.c @@ -91,7 +91,8 @@ action_t store_or_get_action(bool pressed, keypos_t key) for (uint8_t bit_number = 0; bit_number <= 4; bit_number++) { source_layers_cache[bit_number][storage_row] ^= (-(bool)((layer & (1U << bit_number)) != 0) ^ source_layers_cache[bit_number][storage_row])) & (1U << storage_bit); } - } else { + } + 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; |