Commit d742f838 authored by Tiago Sarmento's avatar Tiago Sarmento

tweaks to run on ventilator

parent 5c5b4579
Pipeline #1844 failed with stages
......@@ -44,5 +44,6 @@ class MeasurementHandler(PayloadHandler):
except KeyError:
logging.debug("Invalid key %s in measurement database", key)
self.NativeUI.currentMode = cycle_data["ventilation_mode"]
print(self.NativeUI.currentMode)
self.UpdateMeasurements.emit(outdict)
return 0
......@@ -77,9 +77,9 @@ class StartupHandler(
def carryout_calibration(self) -> int:
assert self.activeWidget is not None
calibrationWidget = self.activeWidget
if 'calibration' in self.calibrationWidget.infoDict['label']:
if 'calibration' in calibrationWidget.infoDict['label']:
self.NativeUI.q_send_cmd("DO_CALIBRATION", "DO_CALIBRATION")
elif 'Leak_Test' in self.calibrationWidget.infoDict['label']:
elif 'Leak_Test' in calibrationWidget.infoDict['label']:
self.NativeUI.q_send_cmd()
else:
logging.debug('ERROR: label does not mach any calibration procedure')
......
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