Fixed TeensyHID bootloader so that it works with the official TeensyLoader GUI application with all supported AVR models.

This commit is contained in:
Dean Camera 2010-05-06 02:06:12 +00:00
parent fc31973daf
commit 298592383a
5 changed files with 42 additions and 13 deletions

View file

@ -120,7 +120,7 @@ void EVENT_USB_Device_UnhandledControlRequest(void)
boot_spm_busy_wait();
/* Write each of the FLASH page's bytes in sequence */
for (uint8_t PageByte = 0; PageByte < SPM_PAGESIZE; PageByte += 2)
for (uint16_t PageByte = 0; PageByte < SPM_PAGESIZE; PageByte += 2)
{
/* Check if endpoint is empty - if so clear it and wait until ready for next packet */
if (!(Endpoint_BytesInEndpoint()))