Skip to content

Commit 1162a45

Browse files
committed
USB serial baud arg type
Make USB Serial_::begin() function take an unsigned long argument for consistency with HardwareSerial. Signed-off-by: Paul Brook <[email protected]>
1 parent 0f0d5fe commit 1162a45

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

hardware/arduino/cores/arduino/CDC.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ 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)
134134
{
135135
}
136136

hardware/arduino/cores/arduino/USBAPI.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ 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);
3434
void end(void);
3535

3636
virtual int available(void);
@@ -193,4 +193,4 @@ void USB_Flush(uint8_t ep);
193193

194194
#endif
195195

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

0 commit comments

Comments
 (0)