aboutsummaryrefslogtreecommitdiffstats
path: root/tests/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/main.c')
-rw-r--r--tests/main.c4
1 files changed, 2 insertions, 2 deletions
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,