Added USE_INTERNAL_SERIAL compile time option to automatically read out the internal unique serial number as the device's serial number descriptor on supported AVR models.
This commit is contained in:
		
							parent
							
								
									35bdada24b
								
							
						
					
					
						commit
						00d0883507
					
				
					 12 changed files with 142 additions and 38 deletions
				
			
		| 
						 | 
				
			
			@ -134,7 +134,7 @@ uint8_t DComp_NextHIDInterface(void* CurrentDescriptor)
 | 
			
		|||
	/* Determine if the current descriptor is an interface descriptor */
 | 
			
		||||
	if (DESCRIPTOR_TYPE(CurrentDescriptor) == DTYPE_Interface)
 | 
			
		||||
	{
 | 
			
		||||
		/* Check the HID descriptor class and protocol, break out if correct class/protocol interface found */
 | 
			
		||||
		/* Check the HID descriptor class, break out if correct class/protocol interface found */
 | 
			
		||||
		if (DESCRIPTOR_CAST(CurrentDescriptor, USB_Descriptor_Interface_t).Class == HID_CLASS)
 | 
			
		||||
		{
 | 
			
		||||
			/* Indicate that the descriptor being searched for has been found */
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue