From a45b2b9e69fd65df42b718fd089d86cf321583b5 Mon Sep 17 00:00:00 2001 From: Joakim Tufvegren <104522+firetech@users.noreply.github.com> Date: Wed, 16 Feb 2022 23:14:49 +0100 Subject: [PATCH] Re-add call to `suspend_power_down_kb()`. 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. Fixes #16279. --- quantum/quantum.c | 1 + 1 file changed, 1 insertion(+) diff --git a/quantum/quantum.c b/quantum/quantum.c index 35b6351e9d99..be43faaf6b74 100644 --- a/quantum/quantum.c +++ b/quantum/quantum.c @@ -488,6 +488,7 @@ __attribute__((weak)) void suspend_power_down_user(void) {} __attribute__((weak)) void suspend_power_down_kb(void) { suspend_power_down_user(); } void suspend_power_down_quantum(void) { + suspend_power_down_kb(); #ifndef NO_SUSPEND_POWER_DOWN // Turn off backlight # ifdef BACKLIGHT_ENABLE