summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhathach <[email protected]>2020-03-24 00:07:34 +0700
committerhathach <[email protected]>2020-03-24 00:07:34 +0700
commitfca4a6eabf0f2de5003700deb9df0871565cf32a (patch)
tree933c4d8097ac79fb94ff6def19f839047d444421
parentaa01e5f447376f407a114c153ecae488a9498b98 (diff)
more string id
-rw-r--r--examples/device/net_lwip_webserver/src/usb_descriptors.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/device/net_lwip_webserver/src/usb_descriptors.c b/examples/device/net_lwip_webserver/src/usb_descriptors.c
index 18d1854f2..c7a8cc767 100644
--- a/examples/device/net_lwip_webserver/src/usb_descriptors.c
+++ b/examples/device/net_lwip_webserver/src/usb_descriptors.c
@@ -136,7 +136,7 @@ uint8_t const * tud_descriptor_configuration_cb(uint8_t index)
//--------------------------------------------------------------------+
// array of pointer to string descriptors
-char const* string_desc_arr [] =
+static char const* string_desc_arr [] =
{
[STRID_LANGID] = (const char[]) { 0x09, 0x04 }, // supported language is English (0x0409)
[STRID_MANUFACTURER] = "TinyUSB", // Manufacturer
@@ -159,7 +159,7 @@ uint16_t const* tud_descriptor_string_cb(uint8_t index, uint16_t langid)
if (STRID_LANGID == index)
{
- memcpy(&_desc_str[1], string_desc_arr[0], 2);
+ memcpy(&_desc_str[1], string_desc_arr[STRID_LANGID], 2);
chr_count = 1;
}
else if (STRID_MAC == index)