We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ea894b1 commit ba1ad40Copy full SHA for ba1ad40
cores/arduino/USB/USBCore.cpp
@@ -92,7 +92,7 @@ bool USBDeviceClass::sendStringDescriptor(const uint8_t *string, uint8_t maxlen)
92
93
uint8_t buffer[maxlen];
94
buffer[0] = 0x03;
95
- buffer[1] = strlen(string) * 2 + 2;
+ buffer[1] = strlen((const char*)string) * 2 + 2;
96
97
uint8_t i;
98
for (i = 2; i < maxlen && *string; i++) {
0 commit comments