Change RGB/LED Matrix to use a simple define for USB suspend (#12697)
This commit is contained in:
		
							parent
							
								
									7409f03cbf
								
							
						
					
					
						commit
						d8167779cd
					
				
					 9 changed files with 62 additions and 53 deletions
				
			
		| 
						 | 
				
			
			@ -83,6 +83,9 @@ void suspend_power_down(void) {
 | 
			
		|||
#if defined(RGBLIGHT_SLEEP) && defined(RGBLIGHT_ENABLE)
 | 
			
		||||
    rgblight_suspend();
 | 
			
		||||
#endif
 | 
			
		||||
#    if defined(RGB_MATRIX_ENABLE)
 | 
			
		||||
    rgb_matrix_set_suspend_state(true);
 | 
			
		||||
#    endif
 | 
			
		||||
#ifdef AUDIO_ENABLE
 | 
			
		||||
    stop_all_notes();
 | 
			
		||||
#endif /* AUDIO_ENABLE */
 | 
			
		||||
| 
						 | 
				
			
			@ -151,5 +154,8 @@ void suspend_wakeup_init(void) {
 | 
			
		|||
#if defined(RGBLIGHT_SLEEP) && defined(RGBLIGHT_ENABLE)
 | 
			
		||||
    rgblight_wakeup();
 | 
			
		||||
#endif
 | 
			
		||||
#    if defined(RGB_MATRIX_ENABLE)
 | 
			
		||||
    rgb_matrix_set_suspend_state(false);
 | 
			
		||||
#    endif
 | 
			
		||||
    suspend_wakeup_init_kb();
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue