Set flow control for higher baud rate

per FTDI reccommendation, set the flow control to XON-XOFF, with 0x11 = Xon and 0x13 Xoff, per example by FTDI
This commit is contained in:
Hayley 2019-06-24 14:36:58 -05:00
parent 6ca60bec26
commit c3dd1eafb7

View file

@ -362,7 +362,7 @@ FT_HANDLE thumbDV_openSerial( FT_DEVICE_LIST_INFO_NODE device )
FT_SetDataCharacteristics(handle, FT_BITS_8, FT_STOP_BITS_1, FT_PARITY_NONE);
FT_SetFlowControl(handle, FT_FLOW_NONE, 0, 0);
FT_SetFlowControl(handle, FT_FLOW_XON_XOFF, 0x11, 0x13);
/*
tty.c_cflag = ( tty.c_cflag & ~CSIZE ) | CS8;