From 0ad234c19464a63f6fabd8d12d2769ef9f102833 Mon Sep 17 00:00:00 2001 From: Dean Camera Date: Tue, 14 May 2013 22:25:03 +0200 Subject: [PATCH] Fix Printer class bootloader - descriptors are stored in SRAM, not FLASH. --- Bootloaders/Printer/Descriptors.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Bootloaders/Printer/Descriptors.c b/Bootloaders/Printer/Descriptors.c index b1b1a5898b..0bf32c6c7b 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; }