Skip to content

Commit

Permalink
Fix TO() and DF() calling layer_state_set_[kb,user] twice (qmk#6003)
Browse files Browse the repository at this point in the history
  • Loading branch information
fauxpark authored and mechmerlin committed May 29, 2019
1 parent 7d3f90c commit de7422e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tmk_core/common/action.c
Original file line number Diff line number Diff line change
Expand Up @@ -412,7 +412,7 @@ void process_action(keyrecord_t *record, action_t action)
case OP_BIT_AND: default_layer_and(bits | mask); break;
case OP_BIT_OR: default_layer_or(bits | mask); break;
case OP_BIT_XOR: default_layer_xor(bits | mask); break;
case OP_BIT_SET: default_layer_and(mask); default_layer_or(bits); break;
case OP_BIT_SET: default_layer_set(bits | mask); break;
}
}
} else {
Expand All @@ -426,7 +426,7 @@ void process_action(keyrecord_t *record, action_t action)
case OP_BIT_AND: layer_and(bits | mask); break;
case OP_BIT_OR: layer_or(bits | mask); break;
case OP_BIT_XOR: layer_xor(bits | mask); break;
case OP_BIT_SET: layer_and(mask); layer_or(bits); break;
case OP_BIT_SET: layer_state_set(bits | mask); break;
}
}
}
Expand Down

0 comments on commit de7422e

Please sign in to comment.