Fixed USB_GetHIDReportSize() returning the number of bits in the specified report instead of bytes.
Moved the USB_GetHIDReportItemInfo() calls into the main report item passing loop in the *HostWithParser demos - it is fast enough not to effect performance, and avoids duplicate code. Make Webserver project report the LUFA version as part of the HTTP header.
This commit is contained in:
		
							parent
							
								
									3ab0b3a027
								
							
						
					
					
						commit
						35a0fe9384
					
				
					 10 changed files with 29 additions and 45 deletions
				
			
		| 
						 | 
				
			
			@ -167,10 +167,6 @@ bool TINYNVM_WriteMemory(const uint16_t WriteAddress, uint8_t* WriteBuffer, uint
 | 
			
		|||
	
 | 
			
		||||
	while (WriteLength)
 | 
			
		||||
	{
 | 
			
		||||
		/* Wait until the NVM controller is no longer busy */
 | 
			
		||||
		if (!(TINYNVM_WaitWhileNVMControllerBusy()))
 | 
			
		||||
		  return false;
 | 
			
		||||
 | 
			
		||||
		/* Write the low byte of data to the target */
 | 
			
		||||
		XPROGTarget_SendByte(TPI_CMD_SST | TPI_POINTER_INDIRECT_PI);
 | 
			
		||||
		XPROGTarget_SendByte(*(WriteBuffer++));
 | 
			
		||||
| 
						 | 
				
			
			@ -179,6 +175,10 @@ bool TINYNVM_WriteMemory(const uint16_t WriteAddress, uint8_t* WriteBuffer, uint
 | 
			
		|||
		XPROGTarget_SendByte(TPI_CMD_SST | TPI_POINTER_INDIRECT_PI);
 | 
			
		||||
		XPROGTarget_SendByte(*(WriteBuffer++));
 | 
			
		||||
 | 
			
		||||
		/* Wait until the NVM controller is no longer busy */
 | 
			
		||||
		if (!(TINYNVM_WaitWhileNVMControllerBusy()))
 | 
			
		||||
		  return false;
 | 
			
		||||
 | 
			
		||||
		/* Need to decrement the write length twice, since we read out a whole word */
 | 
			
		||||
		WriteLength -= 2;
 | 
			
		||||
	}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue