Skip to content

Commit a0b9d95

Browse files
committed
Merge branch 'usb-serial-begin' of github.com:pbrook/Arduino into pbrook-usb-serial-begin
2 parents 5615e20 + f53fcdd commit a0b9d95

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

hardware/arduino/cores/arduino/CDC.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,11 @@ bool WEAK CDC_Setup(Setup& setup)
130130

131131

132132
int _serialPeek = -1;
133-
void Serial_::begin(uint16_t baud_count)
133+
void Serial_::begin(unsigned long baud_count)
134+
{
135+
}
136+
137+
void Serial_::begin(unsigned long baud_count, byte config)
134138
{
135139
}
136140

hardware/arduino/cores/arduino/USBAPI.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,8 @@ class Serial_ : public Stream
3030
private:
3131
ring_buffer *_cdc_rx_buffer;
3232
public:
33-
void begin(uint16_t baud_count);
33+
void begin(unsigned long);
34+
void begin(unsigned long, uint8_t);
3435
void end(void);
3536

3637
virtual int available(void);
@@ -193,4 +194,4 @@ void USB_Flush(uint8_t ep);
193194

194195
#endif
195196

196-
#endif /* if defined(USBCON) */
197+
#endif /* if defined(USBCON) */

0 commit comments

Comments
 (0)