Skip to content

Commit 0ade989

Browse files
committed
USB CDC two argument begin()
Add two argument form of Serial_::begin Signed-off-by: Paul Brook <[email protected]>
1 parent c2a0030 commit 0ade989

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

cores/arduino/CDC.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,10 @@ void Serial_::begin(unsigned long baud_count)
134134
{
135135
}
136136

137+
void Serial_::begin(unsigned long baud_count, byte config)
138+
{
139+
}
140+
137141
void Serial_::end(void)
138142
{
139143
}

cores/arduino/USBAPI.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ class Serial_ : public Stream
3131
ring_buffer *_cdc_rx_buffer;
3232
public:
3333
void begin(unsigned long);
34+
void begin(unsigned long, uint8_t);
3435
void end(void);
3536

3637
virtual int available(void);

0 commit comments

Comments
 (0)