* Update massdrop/alt keyboard to fix Caps Lock LED flickering. * Fix Caps-lock LED during underglow-only for massdrop/ctrl * Update keyboards/massdrop/ctrl/keymaps/default/keymap.c
This commit is contained in:
		
							parent
							
								
									84ca67f158
								
							
						
					
					
						commit
						16fe4b8b77
					
				
					 5 changed files with 16 additions and 14 deletions
				
			
		| 
						 | 
				
			
			@ -100,11 +100,11 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
 | 
			
		|||
            if (record->event.pressed) {
 | 
			
		||||
              switch (rgb_matrix_get_flags()) {
 | 
			
		||||
                case LED_FLAG_ALL: {
 | 
			
		||||
                    rgb_matrix_set_flags(LED_FLAG_KEYLIGHT | LED_FLAG_MODIFIER);
 | 
			
		||||
                    rgb_matrix_set_flags(LED_FLAG_KEYLIGHT | LED_FLAG_MODIFIER | LED_FLAG_INDICATOR);
 | 
			
		||||
                    rgb_matrix_set_color_all(0, 0, 0);
 | 
			
		||||
                  }
 | 
			
		||||
                  break;
 | 
			
		||||
                case LED_FLAG_KEYLIGHT | LED_FLAG_MODIFIER: {
 | 
			
		||||
                case (LED_FLAG_KEYLIGHT | LED_FLAG_MODIFIER | LED_FLAG_INDICATOR): {
 | 
			
		||||
                    rgb_matrix_set_flags(LED_FLAG_UNDERGLOW);
 | 
			
		||||
                    rgb_matrix_set_color_all(0, 0, 0);
 | 
			
		||||
                  }
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue