Skip to content

USB CDC Serial_::begin fixes. #1563

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Sep 30, 2013
Merged

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