mirror of
				https://github.com/mfulz/qmk_firmware.git
				synced 2025-10-31 05:12:33 +01:00 
			
		
		
		
	Oops - typo in the updated TeensyHID bootloader code when compiled for the non Teensy++ targets.
This commit is contained in:
		
							parent
							
								
									298592383a
								
							
						
					
					
						commit
						add5192366
					
				| @ -51,7 +51,7 @@ USB_Descriptor_HIDReport_Datatype_t HIDReport[] = | |||||||
| 	0x0a, 0x19, 0x00,        /*   Usage (Vendor Defined)                        */ | 	0x0a, 0x19, 0x00,        /*   Usage (Vendor Defined)                        */ | ||||||
| 	0x75, 0x08,              /*   Report Size (8)                               */ | 	0x75, 0x08,              /*   Report Size (8)                               */ | ||||||
| #if (SPM_PAGESIZE == 128)    /*   Report Count (SPM_PAGESIZE + 2)               */ | #if (SPM_PAGESIZE == 128)    /*   Report Count (SPM_PAGESIZE + 2)               */ | ||||||
| 	0x95, (SPM_PAGESIZE + 2) | 	0x95, (SPM_PAGESIZE + 2), | ||||||
| #else | #else | ||||||
| 	0x96, ((SPM_PAGESIZE + 2) & 0xFF), ((SPM_PAGESIZE + 2) >> 8), | 	0x96, ((SPM_PAGESIZE + 2) & 0xFF), ((SPM_PAGESIZE + 2) >> 8), | ||||||
| #endif | #endif | ||||||
|  | |||||||
| @ -120,7 +120,11 @@ void EVENT_USB_Device_UnhandledControlRequest(void) | |||||||
| 				boot_spm_busy_wait(); | 				boot_spm_busy_wait(); | ||||||
| 				 | 				 | ||||||
| 				/* Write each of the FLASH page's bytes in sequence */ | 				/* Write each of the FLASH page's bytes in sequence */ | ||||||
|  | 				#if (SPM_PAGESIZE == 128) | ||||||
|  | 				for (uint8_t PageByte = 0; PageByte < SPM_PAGESIZE; PageByte += 2)				 | ||||||
|  | 				#else | ||||||
| 				for (uint16_t PageByte = 0; PageByte < SPM_PAGESIZE; PageByte += 2)				 | 				for (uint16_t PageByte = 0; PageByte < SPM_PAGESIZE; PageByte += 2)				 | ||||||
|  | 				#endif | ||||||
| 				{ | 				{ | ||||||
| 					/* Check if endpoint is empty - if so clear it and wait until ready for next packet */ | 					/* Check if endpoint is empty - if so clear it and wait until ready for next packet */ | ||||||
| 					if (!(Endpoint_BytesInEndpoint())) | 					if (!(Endpoint_BytesInEndpoint())) | ||||||
|  | |||||||
| @ -48,7 +48,7 @@ | |||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
| # MCU name
 | # MCU name
 | ||||||
| MCU = at90usb1287 | MCU = atmega32u4 | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
| # Target board (see library "Board Types" documentation, NONE for projects not requiring
 | # Target board (see library "Board Types" documentation, NONE for projects not requiring
 | ||||||
| @ -86,7 +86,7 @@ F_CLOCK = $(F_CPU) | |||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
| # Starting byte address of the bootloader
 | # Starting byte address of the bootloader
 | ||||||
| BOOT_START = 0x1e000 | BOOT_START = 0x7000 | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
| # Output format. (can be srec, ihex, binary)
 | # Output format. (can be srec, ihex, binary)
 | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Dean Camera
						Dean Camera