Merge branch 'ergodox_ez_taudris' into ergodox_ez_taudris_lapdesk

This commit is contained in:
taudris 2023-10-27 02:28:29 -07:00
commit d6c627cda5
1 changed files with 4 additions and 3 deletions

View File

@ -279,7 +279,7 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
#endif #endif
//turn off capslock when pressing shift to type a shifted key //turn off capslock when pressing shift to type a shifted key
if ( if (
host_keyboard_leds() & (1<<USB_LED_CAPS_LOCK) && //capslock on host_keyboard_led_state().caps_lock &&
( (
temp_mod & MODS_SHIFT_MASK temp_mod & MODS_SHIFT_MASK
#ifndef NO_ACTION_ONESHOT #ifndef NO_ACTION_ONESHOT
@ -382,10 +382,11 @@ layer_state_t layer_state_set_user(layer_state_t state) {
return state; return state;
}; };
void led_set_kb(uint8_t usb_led) { bool led_update_user(led_t led_state) {
if (usb_led & (1<<USB_LED_CAPS_LOCK)) { if (led_state.caps_lock) {
ergodox_right_led_1_on(); ergodox_right_led_1_on();
} else { } else {
ergodox_right_led_1_off(); ergodox_right_led_1_off();
} }
return true;
} }