Skip to content

Commit a0e82f6

Browse files
committed
clean up
1 parent eeab293 commit a0e82f6

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

cores/nRF5/Adafruit_TinyUSB_Core/Adafruit_USBD_CDC.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,13 @@ uint16_t Adafruit_USBD_CDC::getDescriptor(uint8_t* buf, uint16_t bufsize)
5353
// Baud and config is ignore in CDC
5454
void Adafruit_USBD_CDC::begin (uint32_t baud)
5555
{
56+
(void) baud;
5657
}
58+
5759
void Adafruit_USBD_CDC::begin (uint32_t baud, uint8_t config)
5860
{
61+
(void) baud;
62+
(void) config;
5963
}
6064

6165
void Adafruit_USBD_CDC::end(void)
@@ -129,6 +133,7 @@ extern "C"
129133
void tud_cdc_line_state_cb(uint8_t itf, bool dtr, bool rts)
130134
{
131135
(void) itf; // interface ID, not used
136+
(void) rts;
132137

133138
// DTR = false is counted as disconnected
134139
if ( !dtr )

cores/nRF5/Adafruit_TinyUSB_Core/tusb_config.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,6 @@
5454
#define CFG_TUD_CDC 1
5555
#define CFG_TUD_MSC 1
5656
#define CFG_TUD_HID 1
57-
5857
#define CFG_TUD_MIDI 1
5958
#define CFG_TUD_CUSTOM_CLASS 0
6059

0 commit comments

Comments
 (0)