From b6498a0104c637139035f08219cc2f39cb953e6d Mon Sep 17 00:00:00 2001 From: Christian Starkjohann Date: Wed, 5 Dec 2012 23:07:22 +0100 Subject: Add const keyword to all PROGMEM declarations as required by new gcc. --- tests/main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests') diff --git a/tests/main.c b/tests/main.c index fa23ca4..8b8ba4c 100644 --- a/tests/main.c +++ b/tests/main.c @@ -48,7 +48,7 @@ void usbFunctionWriteOut(uchar *data, uchar len) #if USE_DYNAMIC_DESCRIPTOR -static PROGMEM char myDescriptorDevice[] = { /* USB device descriptor */ +static PROGMEM const char myDescriptorDevice[] = { /* USB device descriptor */ 18, /* sizeof(usbDescriptorDevice): length of descriptor in bytes */ USBDESCR_DEVICE, /* descriptor type */ 0x10, 0x01, /* USB version supported */ @@ -68,7 +68,7 @@ static PROGMEM char myDescriptorDevice[] = { /* USB device descriptor */ 1, /* number of configurations */ }; -static PROGMEM char myDescriptorConfiguration[] = { /* USB configuration descriptor */ +static PROGMEM const char myDescriptorConfiguration[] = { /* USB configuration descriptor */ 9, /* sizeof(usbDescriptorConfiguration): length of descriptor in bytes */ USBDESCR_CONFIG, /* descriptor type */ 18 + 7 * USB_CFG_HAVE_INTRIN_ENDPOINT + (USB_CFG_DESCR_PROPS_HID & 0xff), 0, -- cgit v1.2.3