summaryrefslogtreecommitdiff
path: root/quantum/quantum.c
diff options
context:
space:
mode:
authorJoel Challis <git@zvecr.com>2022-01-22 21:17:02 +0000
committerGitHub <noreply@github.com>2022-01-22 21:17:02 +0000
commit6e83b449409f7fe479210a9fab808e8bcae64977 (patch)
tree0429c5a810d39fbd423350566d476fa3f798db27 /quantum/quantum.c
parent448a90f6b0b68ef074b1a19a081eceaafcc7425e (diff)
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.c11
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) {
433# endif 433# endif
434 434
435 // Turn off LED indicators 435 // Turn off LED indicators
436 uint8_t leds_off = 0; 436 led_suspend();
437# if defined(BACKLIGHT_CAPS_LOCK) && defined(BACKLIGHT_ENABLE)
438 if (is_backlight_enabled()) {
439 // Don't try to turn off Caps Lock indicator as it is backlight and backlight is already off
440 leds_off |= (1 << USB_LED_CAPS_LOCK);
441 }
442# endif
443 led_set(leds_off);
444 437
445// Turn off audio 438// Turn off audio
446# ifdef AUDIO_ENABLE 439# ifdef AUDIO_ENABLE
@@ -491,7 +484,7 @@ __attribute__((weak)) void suspend_wakeup_init_quantum(void) {
491#endif 484#endif
492 485
493 // Restore LED indicators 486 // Restore LED indicators
494 led_set(host_keyboard_leds()); 487 led_wakeup();
495 488
496// Wake up underglow 489// Wake up underglow
497#if defined(RGBLIGHT_SLEEP) && defined(RGBLIGHT_ENABLE) 490#if defined(RGBLIGHT_SLEEP) && defined(RGBLIGHT_ENABLE)