1
0
Fork 0

Update action.c

This commit is contained in:
eltang 2016-04-02 09:13:13 -07:00
parent 680301e3e3
commit fddccc95fe

View file

@ -95,7 +95,7 @@ action_t store_or_get_action(bool pressed, keypos_t key)
else { else {
layer = 0; layer = 0;
for (uint8_t bit_number = 0; bit_number <= 4; bit_number++) { 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); return action_for_key(layer, key);