Skip to content

Commit 270088f

Browse files
committed
clang fixes
1 parent d4ff30c commit 270088f

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/arduino/Adafruit_USBD_Device.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ void Adafruit_USBD_Device::clearConfiguration(void) {
210210
_desc_str_arr[STRID_LANGUAGE] = (const char *)((uint32_t)USB_LANGUAGE);
211211
_desc_str_arr[STRID_MANUFACTURER] = USB_MANUFACTURER;
212212
_desc_str_arr[STRID_PRODUCT] = USB_PRODUCT;
213-
_desc_str_arr[STRID_SERIAL] = nullptr;
213+
_desc_str_arr[STRID_SERIAL] = nullptr;
214214
// STRID_SERIAL is platform dependent
215215

216216
_desc_str_count = 4;
@@ -322,8 +322,8 @@ uint16_t const *Adafruit_USBD_Device::descriptor_string_cb(uint8_t index,
322322

323323
case STRID_SERIAL:
324324
if (!_desc_str_arr[STRID_SERIAL]) {
325-
chr_count = getSerialDescriptor(_desc_str);
326-
break;
325+
chr_count = getSerialDescriptor(_desc_str);
326+
break;
327327
}
328328
// else we have a serial string, treat as all others, fall through
329329

src/arduino/Adafruit_USBD_Device.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ class Adafruit_USBD_Device {
8585
void setLanguageDescriptor(uint16_t language_id);
8686
void setManufacturerDescriptor(const char *s);
8787
void setProductDescriptor(const char *s);
88-
void setSerialDescriptor(const char *s);
88+
void setSerialDescriptor(const char *s);
8989
uint8_t getSerialDescriptor(uint16_t *serial_utf16);
9090

9191
//------------- Control -------------//

0 commit comments

Comments
 (0)