Changeset 130 in flair-src
- Timestamp:
- Feb 6, 2017, 4:07:35 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/FlairCore/src/Unix_SerialPort.cpp
r15 r130 50 50 options.c_cc[VTIME] = 0; 51 51 options.c_cc[VMIN] = 1; 52 tcsetattr(fd, TCSANOW, &options); 52 53 FlushInput(); 53 tcsetattr(fd, TCSANOW, &options);54 54 } 55 55 … … 57 57 58 58 void Unix_SerialPort::SetBaudrate(int baudrate) { 59 // set port options60 59 struct termios options; 61 60 // Get the current options for the port 62 61 tcgetattr(fd, &options); 63 // Set the baud rates to 115200 64 62 65 63 switch (baudrate) { 66 64 case 1200:
Note:
See TracChangeset
for help on using the changeset viewer.