Clean up shift/shiftlock cruft

* firmware/asdf/src/asdf_modifiers.h: C
This commit is contained in:
Dave 2020-04-27 17:11:36 -05:00
parent 8e2a12b9d5
commit ef7a7bf320
2 changed files with 2 additions and 4 deletions

View File

@ -64,7 +64,7 @@ static const modifier_index_t modifier_mapping[] = {
void asdf_modifier_set_shift_state(uint8_t new_state)
{
shift_state = new_state;
asdf_virtual_action(VSHIFT_LED, (shift_state ? V_SET_HI : V_SET_LO));
asdf_virtual_action(VSHIFT_LED, ((shift_state & SHIFT_LOCKED_ST) ? V_SET_HI : V_SET_LO));
}
// PROCEDURE: asdf_modifier_shift_activate

View File

@ -55,9 +55,7 @@ typedef enum {
// Define the legal CAPS and CAPSLOCK states
typedef enum {
CAPS_OFF_ST = 0,
CAPS_ON_ST = 1,
CAPS_LOCKED_ST = 2,
CAPS_BOTH_ST = 3 // Never explicitly set. CAPS and CAPSLOCK together.
CAPS_LOCKED_ST = 1,
} caps_state_t;
// Define the legal CTRL states