Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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 <paul@nowt.org>
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‎

Lines changed: 1 addition & 1 deletion
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(unsignedlong baud_count)
134134
{
135135
}
136136

‎hardware/arduino/cores/arduino/USBAPI.h‎

Lines changed: 2 additions & 2 deletions
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(unsignedlong);
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)

AltStyle によって変換されたページ (->オリジナル) /