Skip to content

Commit

Permalink
Support 500kbps serial ports. (wjwwood#167)
Browse files Browse the repository at this point in the history
  • Loading branch information
mikepurvis authored and wjwwood committed Jan 9, 2018
1 parent 827c4a7 commit d3713af
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion include/serial/serial.h
Original file line number Diff line number Diff line change
Expand Up @@ -488,7 +488,7 @@ class Serial {
* 110, 300, 600, 1200, 2400, 4800, 9600, 14400, 19200, 28800, 38400, 56000,
* 57600, 115200
* Some other baudrates that are supported by some comports:
* 128000, 153600, 230400, 256000, 460800, 921600
* 128000, 153600, 230400, 256000, 460800, 500000, 921600
*
* \param baudrate An integer that sets the baud rate for the serial port.
*
Expand Down
3 changes: 3 additions & 0 deletions src/impl/unix.cc
Original file line number Diff line number Diff line change
Expand Up @@ -269,6 +269,9 @@ Serial::SerialImpl::reconfigurePort ()
#ifdef B460800
case 460800: baud = B460800; break;
#endif
#ifdef B500000
case 500000: baud = B500000; break;
#endif
#ifdef B576000
case 576000: baud = B576000; break;
#endif
Expand Down

0 comments on commit d3713af

Please sign in to comment.