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

Lighting Layers should be disabled when suspended #11442

Merged
merged 2 commits into from
Jan 11, 2021
Merged

Conversation

spidey3
Copy link
Contributor

@spidey3 spidey3 commented Jan 5, 2021

Description

The current implementation of RGBLIGHT_SLEEP does not disable lighting layers on suspend if RGBLIGHT_LAYERS_OVERRIDE_RGB_OFF is defined. This was an oversight when it was originally implemented, resolved in this pull request.

I have also refactored RGBLIGHT_SLEEP somewhat to eliminate some duplicate code, and to improve encapsulation.

This change does not incur any significant change in compiled firmware size.

Types of Changes

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

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

@github-actions github-actions bot added the core label Jan 5, 2021
@spidey3 spidey3 changed the title Ll sleep Lighting Layers should be disabled when suspended Jan 5, 2021
Copy link
Member

@drashna drashna left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. And yay on moving all that code!

@fauxpark fauxpark requested a review from a team January 5, 2021 18:08
@spidey3 spidey3 mentioned this pull request Jan 8, 2021
14 tasks
@drashna drashna merged commit 4d96b85 into qmk:master Jan 11, 2021
@spidey3 spidey3 deleted the ll_sleep branch January 14, 2021 20:33
drashna pushed a commit to zsa/qmk_firmware that referenced this pull request Feb 2, 2021
* Lighting Layers should be disabled when suspended

* bugfixes
BorisTestov pushed a commit to BorisTestov/qmk_firmware that referenced this pull request May 23, 2024
* Lighting Layers should be disabled when suspended

* bugfixes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants