Oops - typo in the updated TeensyHID bootloader code when compiled for the non Teensy++ targets.

This commit is contained in:
Dean Camera 2010-05-06 02:15:39 +00:00
parent 298592383a
commit add5192366
3 changed files with 8 additions and 4 deletions

View file

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