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