Revision: 7755 https://osdn.net/projects/ttssh2/scm/svn/commits/7755 Author: yutakapon Date: 2019-06-11 19:47:54 +0900 (Tue, 11 Jun 2019) Log Message: ----------- SetupComm()の呼び出しを復活させて、dcb.XonLim,dcb.XoffLim を設定するようにした。 Modified Paths: -------------- branches/hardware_flow_notwork/teraterm/teraterm/commlib.c -------------- next part -------------- Modified: branches/hardware_flow_notwork/teraterm/teraterm/commlib.c =================================================================== --- branches/hardware_flow_notwork/teraterm/teraterm/commlib.c 2019-06-10 14:16:10 UTC (rev 7754) +++ branches/hardware_flow_notwork/teraterm/teraterm/commlib.c 2019-06-11 10:47:54 UTC (rev 7755) @@ -168,8 +168,8 @@ } ClearCommError(cv->ComID,&DErr,NULL); - //SetupComm(cv->ComID,CommInQueSize,CommOutQueSize); - OutputDebugPrintf("%s: SetupComm was skipped.", __FUNCTION__); + SetupComm(cv->ComID,CommInQueSize,CommOutQueSize); + //OutputDebugPrintf("%s: SetupComm was skipped.", __FUNCTION__); /* flush input and output buffers */ if (ClearBuff) { PurgeComm(cv->ComID, PURGE_TXABORT | PURGE_RXABORT | @@ -228,6 +228,9 @@ case IdFlowHard: dcb.fOutxCtsFlow = TRUE; dcb.fRtsControl = RTS_CONTROL_HANDSHAKE; + dcb.XonLim = CommXonLim; + dcb.XoffLim = CommXoffLim; + OutputDebugPrintf("%s: Hardware flow %u %u", __FUNCTION__, dcb.XonLim, dcb.XoffLim); break; }