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
This commit is contained in:
		
							parent
							
								
									448a90f6b0
								
							
						
					
					
						commit
						6e83b44940
					
				
					 8 changed files with 58 additions and 46 deletions
				
			
		| 
						 | 
				
			
			@ -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)
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue