Skip to content
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

Merged
merged 3 commits into from
Jul 6, 2023
Merged

Conversation

fauxpark
Copy link
Member

@fauxpark fauxpark commented Jul 3, 2023

Description

Types of Changes

  • Core
  • Bugfix
  • New feature
  • Enhancement/optimization
  • Keyboard (addition or update)
  • Keymap/layout/userspace (addition or update)
  • Documentation

Issues Fixed or Closed by This PR

Checklist

  • My code follows the code style of this project: C, Python
  • I have read the PR Checklist document and have made the appropriate changes.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.
  • I have added tests to cover my changes.
  • I have tested the changes and verified that they work and don't break anything (as well as I can manage).

@@ -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
Copy link
Member

@zvecr zvecr Jul 3, 2023

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);

Copy link
Member Author

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.

@zvecr zvecr merged commit 87b1134 into qmk:develop Jul 6, 2023
@fauxpark fauxpark deleted the remove-caps-lock-define branch July 6, 2023 08:52
jesperhellberg pushed a commit to jesperhellberg/qmk_firmware that referenced this pull request Sep 9, 2023
thismarvin pushed a commit to thismarvin/qmk_firmware that referenced this pull request Sep 27, 2023
akeep pushed a commit to akeep/qmk_firmware that referenced this pull request Oct 2, 2023
csolje pushed a commit to csolje/qmk_firmware that referenced this pull request Oct 21, 2023
jashort pushed a commit to jashort/qmk_firmware that referenced this pull request Nov 20, 2023
autoferrit pushed a commit to SpaceRockMedia/bastardkb-qmk that referenced this pull request Dec 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants