From fcc404f048ec90ecd86f944667af9178f80956b7 Mon Sep 17 00:00:00 2001 From: Samuele Locatelli Date: Tue, 23 Jun 2020 15:07:30 +0200 Subject: [PATCH] fix connect return value --- Thermo.Active.NC/NcAdapter.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Thermo.Active.NC/NcAdapter.cs b/Thermo.Active.NC/NcAdapter.cs index 5b8e665f..382e98ae 100644 --- a/Thermo.Active.NC/NcAdapter.cs +++ b/Thermo.Active.NC/NcAdapter.cs @@ -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()