diff options
author | Dean Camera <dean@fourwalledcubicle.com> | 2013-05-14 22:25:03 +0200 |
---|---|---|
committer | Dean Camera <dean@fourwalledcubicle.com> | 2013-05-14 22:25:03 +0200 |
commit | 0ad234c19464a63f6fabd8d12d2769ef9f102833 (patch) | |
tree | b5462e31d864b99a67204c1a4ca77a0803b84e16 | |
parent | 3d0e6d055b716d4e86dc5665a58167923aa1fff6 (diff) | |
download | lufa-0ad234c19464a63f6fabd8d12d2769ef9f102833.tar.gz lufa-0ad234c19464a63f6fabd8d12d2769ef9f102833.tar.bz2 lufa-0ad234c19464a63f6fabd8d12d2769ef9f102833.zip |
Fix Printer class bootloader - descriptors are stored in SRAM, not FLASH.
-rw-r--r-- | Bootloaders/Printer/Descriptors.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Bootloaders/Printer/Descriptors.c b/Bootloaders/Printer/Descriptors.c index b1b1a5898..0bf32c6c7 100644 --- a/Bootloaders/Printer/Descriptors.c +++ b/Bootloaders/Printer/Descriptors.c @@ -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; } |