Fix Sheet read

This commit is contained in:
Thermo_SIM
2021-03-22 17:59:30 +01:00
parent 5c2f69b8d2
commit 6f6559ce67
+3 -1
View File
@@ -2569,8 +2569,10 @@ namespace Thermo.Active.NC
ThermoModels.HistorySheet sheetRaw = new ThermoModels.HistorySheet(); ThermoModels.HistorySheet sheetRaw = new ThermoModels.HistorySheet();
libraryError = numericalControl.PLC_RHistorySheets(ref sheetRaw); libraryError = numericalControl.PLC_RHistorySheets(ref sheetRaw);
if (libraryError.IsError())
return libraryError;
if(sheetRaw.newData) if (sheetRaw.newData)
{ {
using (HistorySheetsController HSC = new HistorySheetsController()) using (HistorySheetsController HSC = new HistorySheetsController())