fix connect return value
This commit is contained in:
@@ -32,7 +32,7 @@ namespace Thermo.Active.NC
|
||||
|
||||
public void Dispose()
|
||||
{
|
||||
if (NcConfig.NcVendor != NC_VENDOR.SIEMENS)
|
||||
if (NcConfig.NcVendor != NC_VENDOR.S7NET)
|
||||
numericalControl.NC_Disconnect();
|
||||
}
|
||||
|
||||
@@ -47,7 +47,7 @@ namespace Thermo.Active.NC
|
||||
if (!numericalControl.NC_IsConnected())
|
||||
return numericalControl.NC_Connect();
|
||||
|
||||
return null;
|
||||
return NO_ERROR;
|
||||
}
|
||||
|
||||
public NcThermo SetNumericalControl()
|
||||
|
||||
Reference in New Issue
Block a user