fixed adb_usb to comply new API.
This commit is contained in:
		
							parent
							
								
									fb8d23c60c
								
							
						
					
					
						commit
						c958b2d19b
					
				
					 8 changed files with 76 additions and 103 deletions
				
			
		| 
						 | 
				
			
			@ -81,8 +81,12 @@ static inline int8_t send_report(report_keyboard_t *report, uint8_t endpoint, ui
 | 
			
		|||
            UENUM = endpoint;
 | 
			
		||||
    }
 | 
			
		||||
    UEDATX = report->mods;
 | 
			
		||||
#ifdef USB_NKRO_ENABLE
 | 
			
		||||
    if (!keyboard_nkro)
 | 
			
		||||
        UEDATX = 0;
 | 
			
		||||
#else
 | 
			
		||||
    UEDATX = 0;
 | 
			
		||||
#endif
 | 
			
		||||
    for (uint8_t i = keys_start; i < keys_end; i++) {
 | 
			
		||||
            UEDATX = report->keys[i];
 | 
			
		||||
    }
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue