-
-
Notifications
You must be signed in to change notification settings - Fork 39.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Get rid of USB_LED_CAPS_LOCK
#21436
Get rid of USB_LED_CAPS_LOCK
#21436
Conversation
keyboards/lazydesigners/dimple/staggered/keymaps/tominabox1/keymap.c
Outdated
Show resolved
Hide resolved
Co-authored-by: Joel Challis <[email protected]>
@@ -190,7 +193,7 @@ void sleep_led_toggle(void) { | |||
void sleep_led_init(void) {} | |||
|
|||
void sleep_led_enable(void) { | |||
led_set(1 << USB_LED_CAPS_LOCK); | |||
led_set(2); // Caps Lock |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would it not be better to avoid magics by doing the same as whats above?
led_state.caps_lock = true;
led_set(led_state.raw);
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is just a temporary measure; the plan is to get rid of everything in the indicator API that operates on uint8_t, and replace it with led_t. I just didn't want to lump all of that extra work in this PR.
Description
Types of Changes
Issues Fixed or Closed by This PR
Checklist