mirror of
https://github.com/openstenoproject/qmk
synced 2024-11-11 11:09:10 +00:00
Update action.c
This commit is contained in:
parent
f5365d1c1c
commit
680301e3e3
1 changed files with 2 additions and 1 deletions
|
@ -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++) {
|
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);
|
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;
|
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))) << bit_number;
|
||||||
|
|
Loading…
Reference in a new issue