From 3cb64b2684d66e37455d9299b93f93462209b543 Mon Sep 17 00:00:00 2001 From: Milan Hanajik Date: Tue, 7 Dec 2021 20:34:36 +0100 Subject: [PATCH] TBF.Rig.Network.Comet.Ambient fixed : UpdateProcessData() was missing. --- TBF/Rig/Network/Comet/Ambient/Ambient.cs | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/TBF/Rig/Network/Comet/Ambient/Ambient.cs b/TBF/Rig/Network/Comet/Ambient/Ambient.cs index f3195c642..c9fd08d29 100644 --- a/TBF/Rig/Network/Comet/Ambient/Ambient.cs +++ b/TBF/Rig/Network/Comet/Ambient/Ambient.cs @@ -137,7 +137,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; @@ -208,6 +212,13 @@ namespace TBF.Rig.Network.Comet.Ambient public void StopDevice2() { } + void UpdateProcessData(float temperature, float pressure, float 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 ///