-
Notifications
You must be signed in to change notification settings - Fork 7.6k
Update HardwareSerial.h #2276
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
Update HardwareSerial.h #2276
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -86,6 +86,10 @@ class HardwareSerial: public Stream | |
{ | ||
return write((uint8_t) n); | ||
} | ||
void setBaudRate(uint32_t baud) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Isn't it same as #2223 which is already merged? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes, it appears to be a duplicate. Instead of calling it "updateBaudRate" this PR is calling it "setBaudRate" |
||
{ | ||
uartSetBaudRate(_uart, baud); | ||
} | ||
uint32_t baudRate(); | ||
operator bool() const; | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
don't put the implementation in the header please. just declare here and add to the cpp file