Fix missing bitshift in the AVR8 Pipe_GetBoundEndpointAddress() function.
This commit is contained in:
		
							parent
							
								
									4a7405b2cf
								
							
						
					
					
						commit
						0d80075387
					
				
					 2 changed files with 2 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -323,7 +323,7 @@
 | 
			
		|||
				uint8_t UPCFG0X_Temp = UPCFG0X;
 | 
			
		||||
 | 
			
		||||
				return (((UPCFG0X_Temp >> PEPNUM0) & PIPE_EPNUM_MASK) |
 | 
			
		||||
				        ((UPCFG0X_Temp & PTOKEN1) ? ENDPOINT_DIR_IN : ENDPOINT_DIR_OUT));
 | 
			
		||||
				        ((UPCFG0X_Temp & (1 << PTOKEN1)) ? ENDPOINT_DIR_IN : ENDPOINT_DIR_OUT));
 | 
			
		||||
			}
 | 
			
		||||
 | 
			
		||||
			/** Sets the period between interrupts for an INTERRUPT type pipe to a specified number of milliseconds.
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue