TBF.Rig.Network.Comet.Ambient fixed : UpdateProcessData() was missing.
This commit is contained in:
parent
7ea057dab4
commit
3cb64b2684
@ -137,6 +137,10 @@ 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)
|
||||
{
|
||||
@ -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
|
||||
///
|
||||
|
||||
Loading…
Reference in New Issue
Block a user