diff options
author | Joel Challis <git@zvecr.com> | 2022-01-22 21:17:02 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-22 21:17:02 +0000 |
commit | 6e83b449409f7fe479210a9fab808e8bcae64977 (patch) | |
tree | 0429c5a810d39fbd423350566d476fa3f798db27 /quantum/quantum.c | |
parent | 448a90f6b0b68ef074b1a19a081eceaafcc7425e (diff) | |
download | qmk_firmware-6e83b449409f7fe479210a9fab808e8bcae64977.tar.gz qmk_firmware-6e83b449409f7fe479210a9fab808e8bcae64977.zip |
Align location of some host led logic (#15954)
* Align location of host led logic
* Move more
* align ifdefs
* Fix up includes
* Move callback defs
* Convert comment to build message
Diffstat (limited to 'quantum/quantum.c')
-rw-r--r-- | quantum/quantum.c | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/quantum/quantum.c b/quantum/quantum.c index f12b1a9526..b59fcc9857 100644 --- a/quantum/quantum.c +++ b/quantum/quantum.c @@ -433,14 +433,7 @@ void suspend_power_down_quantum(void) { # endif // Turn off LED indicators - uint8_t leds_off = 0; -# if defined(BACKLIGHT_CAPS_LOCK) && defined(BACKLIGHT_ENABLE) - if (is_backlight_enabled()) { - // Don't try to turn off Caps Lock indicator as it is backlight and backlight is already off - leds_off |= (1 << USB_LED_CAPS_LOCK); - } -# endif - led_set(leds_off); + led_suspend(); // Turn off audio # ifdef AUDIO_ENABLE @@ -491,7 +484,7 @@ __attribute__((weak)) void suspend_wakeup_init_quantum(void) { #endif // Restore LED indicators - led_set(host_keyboard_leds()); + led_wakeup(); // Wake up underglow #if defined(RGBLIGHT_SLEEP) && defined(RGBLIGHT_ENABLE) |