Skip to content

Commit

Permalink
USB serial baud arg type
Browse files Browse the repository at this point in the history
Make USB Serial_::begin() function take an unsigned long argument for
consistency with HardwareSerial.

Signed-off-by: Paul Brook <[email protected]>
  • Loading branch information
pbrook committed Sep 2, 2013
1 parent 0f0d5fe commit 1162a45
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion hardware/arduino/cores/arduino/CDC.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
}

Expand Down
4 changes: 2 additions & 2 deletions hardware/arduino/cores/arduino/USBAPI.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -193,4 +193,4 @@ void USB_Flush(uint8_t ep);

#endif

#endif /* if defined(USBCON) */
#endif /* if defined(USBCON) */

0 comments on commit 1162a45

Please sign in to comment.