Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/arduino/Adafruit_USBD_Device.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,7 @@ uint16_t const *Adafruit_USBD_Device::descriptor_string_cb(uint8_t index,
return NULL;
}

chr_count = strcpy_utf16(_desc_str_arr[index], _desc_str + 1, 32);
chr_count = strcpy_utf16(_desc_str_arr[index], _desc_str + 1, 126);
break;
}

Expand Down
2 changes: 1 addition & 1 deletion src/arduino/Adafruit_USBD_Device.h
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ class Adafruit_USBD_Device {
// String descriptor
const char *_desc_str_arr[STRING_DESCRIPTOR_MAX];
uint8_t _desc_str_count;
uint16_t _desc_str[32 + 1]; // up to 32 unicode characters with headers
uint16_t _desc_str[126 + 1]; // up to 126 unicode characters (252 bytes) with headers

public:
Adafruit_USBD_Device(void);
Expand Down
Loading