forked from mirrors/qmk_userspace
		
	ad hoc fix for IDLE bug which affects on Mac only.
This commit is contained in:
		
					parent
					
						
							
								5de62e26a0
							
						
					
				
			
			
				commit
				
					
						b0b6c33332
					
				
			
		
					 1 changed files with 2 additions and 1 deletions
				
			
		
							
								
								
									
										3
									
								
								pjrc/usb.c
									
										
									
									
									
										
										
										Normal file → Executable file
									
								
							
							
						
						
									
										3
									
								
								pjrc/usb.c
									
										
									
									
									
										
										
										Normal file → Executable file
									
								
							| 
						 | 
					@ -681,7 +681,8 @@ ISR(USB_GEN_vect)
 | 
				
			||||||
				UEINTX = 0x3A;
 | 
									UEINTX = 0x3A;
 | 
				
			||||||
			}
 | 
								}
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
		if (usb_keyboard_idle_config && (++div4 & 3) == 0) {
 | 
					                /* TODO: should keep IDLE rate on each keyboard interface */
 | 
				
			||||||
 | 
							if (!keyboard_nkro && usb_keyboard_idle_config && (++div4 & 3) == 0) {
 | 
				
			||||||
			UENUM = KBD_ENDPOINT;
 | 
								UENUM = KBD_ENDPOINT;
 | 
				
			||||||
			if (UEINTX & (1<<RWAL)) {
 | 
								if (UEINTX & (1<<RWAL)) {
 | 
				
			||||||
				usb_keyboard_idle_count++;
 | 
									usb_keyboard_idle_count++;
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue