Skip to content

Commit

Permalink
Declare descr_device and descr_config as static const to satisfy gcc.
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidGriffith committed Oct 9, 2018
1 parent 9f5bdd7 commit a72e3fa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions usbtinyisp/usb.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit a72e3fa

Please sign in to comment.