File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
cores/nRF5/Adafruit_TinyUSB_Core Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -164,7 +164,8 @@ uint8_t const * tud_descriptor_configuration_cb(uint8_t index)
164
164
return USBDevice._desc_cfg ;
165
165
}
166
166
167
- static uint16_t _desc_str[32 ];
167
+ // up to 32 unicode characters (header make it 33)
168
+ static uint16_t _desc_str[33 ];
168
169
169
170
// Invoked when received GET STRING DESCRIPTOR request
170
171
// Application return pointer to descriptor, whose contents must exist long enough for transfer to complete
@@ -187,7 +188,7 @@ uint16_t const* tud_descriptor_string_cb(uint8_t index)
187
188
188
189
// cap at max char
189
190
chr_count = strlen (str);
190
- if ( chr_count > 31 ) chr_count = 31 ;
191
+ if ( chr_count > 32 ) chr_count = 32 ;
191
192
192
193
for (uint8_t i=0 ; i<chr_count; i++)
193
194
{
You can’t perform that action at this time.
0 commit comments