Fix Printer class bootloader - descriptors are stored in SRAM, not FLASH.

pull/1469/head
Dean Camera 12 years ago
parent 3d0e6d055b
commit 0ad234c194

@ -188,15 +188,15 @@ uint16_t CALLBACK_USB_GetDescriptor(const uint16_t wValue,
{
case 0x00:
Address = &LanguageString;
Size = pgm_read_byte(&LanguageString.Header.Size);
Size = LanguageString.Header.Size;
break;
case 0x01:
Address = &ManufacturerString;
Size = pgm_read_byte(&ManufacturerString.Header.Size);
Size = ManufacturerString.Header.Size;
break;
case 0x02:
Address = &ProductString;
Size = pgm_read_byte(&ProductString.Header.Size);
Size = ProductString.Header.Size;
break;
}

Loading…
Cancel
Save