Changeset 130 in flair-src for trunk/lib


Ignore:
Timestamp:
Feb 6, 2017, 4:07:35 PM (8 years ago)
Author:
Sanahuja Guillaume
Message:

serialport

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/FlairCore/src/Unix_SerialPort.cpp

    r15 r130  
    5050  options.c_cc[VTIME] = 0;
    5151  options.c_cc[VMIN] = 1;
     52  tcsetattr(fd, TCSANOW, &options);
    5253  FlushInput();
    53   tcsetattr(fd, TCSANOW, &options);
    5454}
    5555
     
    5757
    5858void Unix_SerialPort::SetBaudrate(int baudrate) {
    59   // set port options
    6059  struct termios options;
    6160  // Get the current options for the port
    6261  tcgetattr(fd, &options);
    63   // Set the baud rates to 115200
    64 
     62 
    6563  switch (baudrate) {
    6664  case 1200:
Note: See TracChangeset for help on using the changeset viewer.