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

Re-add call to suspend_power_down_kb(). #16382

Merged
merged 1 commit into from
Feb 17, 2022

Conversation

firetech
Copy link
Contributor

@firetech firetech commented Feb 16, 2022

Description

In #14210, all previous calls to suspend_power_down_kb() were replaced with calls to suspend_power_down_quantum(), together with some much needed deduplication. However, the _kb function was never called from the _quantum one (unlike suspend_wakeup_init_kb()).

I followed the example of how it was implemented for AVR before #14210, i.e. called before the rest of the suspend functions, regardless of the NO_SUSPEND_POWER_DOWN setting.

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

@github-actions github-actions bot added the core label Feb 16, 2022
@tzarc tzarc added the bug label Feb 16, 2022
@drashna drashna requested a review from a team February 17, 2022 16:11
In qmk#14210, all previous calls to `suspend_power_down_kb()` were replaced
with calls to `suspend_power_down_quantum()`, together with some much
needed deduplication. However, the `_kb` function was never called from
the `_quantum` one (unlike `suspend_wakeup_init_kb()`).

I followed the example of how it was implemented for AVR before qmk#14210,
i.e. called before the rest of the suspend functions, regardless of the
`NO_SUSPEND_POWER_DOWN` setting.

Fixes qmk#16279.
@firetech firetech force-pushed the readd_suspend_power_down_kb_call branch from f118593 to a45b2b9 Compare February 17, 2022 16:16
@firetech
Copy link
Contributor Author

firetech commented Feb 17, 2022

I force-pushed a minor change to the commit message (noticed a mistake there, same mistake was in the PR description), the code is untouched.

@drashna drashna merged commit 7f63bcf into qmk:master Feb 17, 2022
@firetech firetech deleted the readd_suspend_power_down_kb_call branch May 8, 2022 10:06
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.

4 participants