restore default mode/color if no 0 color
This commit is contained in:
		
							parent
							
								
									cf9f6bbd91
								
							
						
					
					
						commit
						1d3a19757c
					
				
					 2 changed files with 3 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -214,6 +214,8 @@ uint32_t layer_state_set_user(uint32_t state) {
 | 
			
		|||
    case 0:
 | 
			
		||||
      #ifdef RGBLIGHT_COLOR_LAYER_0
 | 
			
		||||
        rgblight_setrgb(RGBLIGHT_COLOR_LAYER_0);
 | 
			
		||||
      #else
 | 
			
		||||
        rgblight_init();
 | 
			
		||||
      #endif
 | 
			
		||||
      break;
 | 
			
		||||
    case 1:
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue