From a72e3faa918a4cb34ff15d0148253ce2ad6de091 Mon Sep 17 00:00:00 2001 From: David Griffith Date: Mon, 8 Oct 2018 17:41:30 -0700 Subject: [PATCH] Declare descr_device and descr_config as static const to satisfy gcc. --- usbtinyisp/usb.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/usbtinyisp/usb.c b/usbtinyisp/usb.c index 11a016d..132354f 100644 --- a/usbtinyisp/usb.c +++ b/usbtinyisp/usb.c @@ -138,7 +138,7 @@ static byte_t string_langid [] PROGMEM = #endif // Device Descriptor -static byte_t descr_device [18] PROGMEM = +static const byte_t descr_device [18] PROGMEM = { 18, // bLength DESCRIPTOR_TYPE_DEVICE, // bDescriptorType @@ -157,7 +157,7 @@ static byte_t descr_device [18] PROGMEM = }; // Configuration Descriptor -static byte_t descr_config [] PROGMEM = +static const byte_t descr_config [] PROGMEM = { 9, // bLength DESCRIPTOR_TYPE_CONFIGURATION, // bDescriptorType