Develop and Download Open Source Software

Browse Subversion Repository

Diff of /branches/ttcomtester/teraterm/teraterm/commlib.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 6947 by doda, Tue Oct 17 09:38:24 2017 UTC revision 8051 by yutakapon, Sat Aug 31 08:29:39 2019 UTC
# Line 224  void CommResetSerial(PTTSet ts, PComVar Line 224  void CommResetSerial(PTTSet ts, PComVar
224                          dcb.XonChar = XON;                          dcb.XonChar = XON;
225                          dcb.XoffChar = XOFF;                          dcb.XoffChar = XOFF;
226                          break;                          break;
227                  case IdFlowHard:                  case IdFlowHard:  // RTS/CTS
228                          dcb.fOutxCtsFlow = TRUE;                          dcb.fOutxCtsFlow = TRUE;
229                          dcb.fRtsControl = RTS_CONTROL_HANDSHAKE;                          dcb.fRtsControl = RTS_CONTROL_HANDSHAKE;
230                          break;                          break;
231                    case IdFlowHardDsrDtr:  // DSR/DTR
232                            dcb.fOutxDsrFlow = TRUE;
233                            dcb.fDtrControl = DTR_CONTROL_HANDSHAKE;
234                            break;
235          }          }
236    
237          switch (ts->DataBit) {          switch (ts->DataBit) {
# Line 1182  void CommLock(PTTSet ts, PComVar cv, BOO Line 1186  void CommLock(PTTSet ts, PComVar cv, BOO
1186          }          }
1187          if ((cv->PortType==IdTCPIP) ||          if ((cv->PortType==IdTCPIP) ||
1188              (cv->PortType==IdSerial) &&              (cv->PortType==IdSerial) &&
1189              (ts->Flow!=IdFlowHard)) {                          (!(ts->Flow == IdFlowHard || ts->Flow == IdFlowHardDsrDtr))
1190                            ) {
1191                  if (Lock) {                  if (Lock) {
1192                          b = XOFF;                          b = XOFF;
1193                  }                  }
# Line 1192  void CommLock(PTTSet ts, PComVar cv, BOO Line 1197  void CommLock(PTTSet ts, PComVar cv, BOO
1197                  CommBinaryOut(cv,&b,1);                  CommBinaryOut(cv,&b,1);
1198          }          }
1199          else if ((cv->PortType==IdSerial) &&          else if ((cv->PortType==IdSerial) &&
1200                   (ts->Flow==IdFlowHard)) {                   (ts->Flow == IdFlowHard || ts->Flow == IdFlowHardDsrDtr)) {
1201                    // ハードウェアフローの設定に応じて拡張機能コードを切り替える。
1202                  if (Lock) {                  if (Lock) {
1203                          Func = CLRRTS;                          Func = CLRRTS;
1204                            if (ts->Flow == IdFlowHardDsrDtr)
1205                                    Func = CLRDTR;
1206                  }                  }
1207                  else {                  else {
1208                          Func = SETRTS;                          Func = SETRTS;
1209                            if (ts->Flow == IdFlowHardDsrDtr)
1210                                    Func = SETDTR;
1211                  }                  }
1212                  EscapeCommFunction(cv->ComID,Func);                  EscapeCommFunction(cv->ComID,Func);
1213          }          }

Legend:
Removed from v.6947  
changed lines
  Added in v.8051

Back to OSDN">Back to OSDN
ViewVC Help
Powered by ViewVC 1.1.26