aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Bootloaders/Printer/Descriptors.c6
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;
}