Skip to content

Conversation

@pbrook
Copy link
Contributor

@pbrook pbrook commented Sep 2, 2013

On a board with native USB (e.g. Leonardo), Serial.begin(115200); gives a compiler warning:
warning: large integer implicitly truncated to unsigned type
Serial.begin(9600, SERIAL_8N1); doesn't compile at all.

Pull request fixes these by:

  • Change the CDC Serial_::begin prototype to match that of HardwareSerial::begin.
  • Two argument form of begin()

Make USB Serial_::begin() function take an unsigned long argument for
consistency with HardwareSerial.

Signed-off-by: Paul Brook <paul@nowt.org>
Add two argument form of Serial_::begin

Signed-off-by: Paul Brook <paul@nowt.org>
@matthijskooijman
Copy link
Collaborator

Patches look good to me.

@ghost ghost assigned cmaglie Sep 30, 2013
@cmaglie cmaglie merged commit f53fcdd into arduino:master Sep 30, 2013
@cmaglie
Copy link
Member

cmaglie commented Sep 30, 2013

Thanks, patched also for "sam".

C

ollie1400 pushed a commit to ollie1400/Arduino that referenced this pull request May 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants