forked from mirrors/qmk_userspace
		
	Fix capkey led for dz60.
This commit is contained in:
		
					parent
					
						
							
								8443481aea
							
						
					
				
			
			
				commit
				
					
						e2f60eba2f
					
				
			
		
					 1 changed files with 1 additions and 3 deletions
				
			
		| 
						 | 
					@ -23,11 +23,9 @@ void led_init_ports(void) {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
void led_set_kb(uint8_t usb_led) {
 | 
					void led_set_kb(uint8_t usb_led) {
 | 
				
			||||||
    if (usb_led & (1 << USB_LED_CAPS_LOCK)) {
 | 
					    if (usb_led & (1 << USB_LED_CAPS_LOCK)) {
 | 
				
			||||||
        DDRB |= (1 << 2);
 | 
					 | 
				
			||||||
        PORTB &= ~(1 << 2);
 | 
					        PORTB &= ~(1 << 2);
 | 
				
			||||||
    } else {
 | 
					    } else {
 | 
				
			||||||
        DDRB &= ~(1 << 2);
 | 
					        PORTB |= (1 << 2);
 | 
				
			||||||
        PORTB &= ~(1 << 2);
 | 
					 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    led_set_user(usb_led);
 | 
					    led_set_user(usb_led);
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue