|
|
@@ -665,7 +665,7 @@ namespace YSAI.Mewtocol
|
|
|
switch (basics.PType)
|
|
|
{
|
|
|
case MewtocolData.ProtocolType.Tcp:
|
|
|
- if (MTcp != null)
|
|
|
+ if (GetStatus().State)
|
|
|
{
|
|
|
return Break(SN, false, "已连接");
|
|
|
}
|
|
|
@@ -686,7 +686,7 @@ namespace YSAI.Mewtocol
|
|
|
}
|
|
|
break;
|
|
|
case MewtocolData.ProtocolType.Serial:
|
|
|
- if (MSerial != null)
|
|
|
+ if (GetStatus().State)
|
|
|
{
|
|
|
return Break(SN, false, "已连接");
|
|
|
}
|