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

This commit is contained in:
Milan Hanajik 2021-12-07 20:34:36 +01:00
parent 7ea057dab4
commit 3cb64b2684

View File

@ -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
///