mirror of
https://github.com/arduino/Arduino.git
synced 2025-02-19 13:54:23 +01:00
USB serial baud arg type
Make USB Serial_::begin() function take an unsigned long argument for consistency with HardwareSerial. Signed-off-by: Paul Brook <paul@nowt.org>
This commit is contained in:
parent
0f0d5fe01e
commit
1162a45fa8
@ -130,7 +130,7 @@ bool WEAK CDC_Setup(Setup& setup)
|
||||
|
||||
|
||||
int _serialPeek = -1;
|
||||
void Serial_::begin(uint16_t baud_count)
|
||||
void Serial_::begin(unsigned long baud_count)
|
||||
{
|
||||
}
|
||||
|
||||
|
@ -30,7 +30,7 @@ class Serial_ : public Stream
|
||||
private:
|
||||
ring_buffer *_cdc_rx_buffer;
|
||||
public:
|
||||
void begin(uint16_t baud_count);
|
||||
void begin(unsigned long);
|
||||
void end(void);
|
||||
|
||||
virtual int available(void);
|
||||
@ -193,4 +193,4 @@ void USB_Flush(uint8_t ep);
|
||||
|
||||
#endif
|
||||
|
||||
#endif /* if defined(USBCON) */
|
||||
#endif /* if defined(USBCON) */
|
||||
|
Loading…
x
Reference in New Issue
Block a user