Commit 690de648 authored by Peter Švihra's avatar Peter Švihra

fixed data mismatch

parent 81c823ca
......@@ -150,7 +150,7 @@ void UILoop::reportReadbackValues()
_readback_data.valve_exhale = vexhale;
_readback_data.valve_purge = vpurge;
_readback_data.ventilation_mode = static_cast<uint8_t>(_breathing_loop->getVentilationMode());
_readback_data.ventilation_mode = _breathing_loop->getVentilationMode();
_readback_data.valve_inhale_percent = 0;
_readback_data.valve_exhale_percent = 0;
......
......@@ -296,8 +296,8 @@ class DataFormat(PayloadFormat):
ambient_temperature: int = 0
airway_pressure: float = 0.0
flow: float = 0.0
flow_calc : float = 0.0
volume : float = 0.0
flow_calc : float = 0.0
volume : float = 0.0
target_pressure : float = 0.0 ##
process_pressure: float = 0.0
valve_duty_cycle: float = 0.0
......@@ -331,6 +331,7 @@ class DataFormat(PayloadFormat):
self.ambient_temperature,
self.airway_pressure,
self.flow,
self.flow_calc,
self.volume,
self.target_pressure ,
self.process_pressure,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment