Skip to content

Commit 466355c

Browse files
committed
add function descriptor for addStringDescriptor()
1 parent 0afc6bd commit 466355c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/arduino/Adafruit_USBD_Device.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,8 @@ void Adafruit_USBD_Device::setSerialDescriptor(const char *s) {
126126
_desc_str_arr[STRID_SERIAL] = s;
127127
}
128128

129+
// Add a string descriptor to the device's pool
130+
// Return string index
129131
uint8_t Adafruit_USBD_Device::addStringDescriptor(const char *s) {
130132
if (_desc_str_count >= STRING_DESCRIPTOR_MAX || s == NULL) {
131133
return 0;

0 commit comments

Comments
 (0)