TBF.Rig.Network.Comet.Ambient fixed : UpdateProcessData() was missing.

This commit is contained in:
Milan Hanajik
2021-12-09 16:35:04 +01:00
parent edc48d8723
commit 0e45ef6689
+12 -1
View File
@@ -135,7 +135,11 @@ namespace TBF.Rig.Network.Comet.Ambient
state = State.Idle;
}
}
}
UpdateProcessData(temperature, pressure, humidity);
log.InfoFormat("Ambient: temperature = {0:F1} C, humidity = {1:F1} %, pressure = {2:F0} mbar", temperature, humidity, 1000 * pressure);
}
catch (Exception e)
{
DebugLevel = DebugMode.FailureDuringOperation;
@@ -206,6 +210,13 @@ namespace TBF.Rig.Network.Comet.Ambient
public void StopDevice2() { }
void UpdateProcessData(double temperature, double pressure, double humidity)
{
TBF.Rig.Sequences.ProcessData.AmbTemp.Val = temperature;
TBF.Rig.Sequences.ProcessData.AmbPress.Val = pressure;
TBF.Rig.Sequences.ProcessData.AmbHumi.Val = humidity;
}
///
/// Boxes for the operation result
///