lemanhtrung / qextserialport

Automatically exported from code.google.com/p/qextserialport
Other
0 stars 0 forks source link

XON/XOFF characters not set #90

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Add following lines to set XON/XOFF chars at posix_qextserialport.cpp:625 for 
correct XON/XOFF on linux.

case FLOW_XONXOFF:
  Posix_CommConfig.c_cflag&=(~CRTSCTS);
  Posix_CommConfig.c_iflag|=(IXON|IXOFF|IXANY);                                 
+  Posix_CommConfig.c_cc[VSTART] = 0x11;     /* DC1 */
+  Posix_CommConfig.c_cc[VSTOP] = 0x13;     /* DC3 */

Original issue reported on code.google.com by grafa...@gmail.com on 11 Mar 2011 at 4:23