Commit e221df93 authored by Benjamin Mummery's avatar Benjamin Mummery 💻

Merge branch 'ventilator_ops_mdtec' of ssh://ohwr.org:7999/project/hev into ventilator_ops_mdtec

parents f93022a0 6b549a4d
Pipeline #2925 failed with stages
{"calibration": {"label": "calibration", "last_performed": 1634811102, "cmd_code": "calib_rate", "message": "Ensure patient is disconnected from ventilator"}, "leak_test": {"label": "Leak Test", "last_performed": 1634811106, "cmd_code": "leak_test", "message": "Ensure patient is disconnected from ventilator"}} {"calibration": {"label": "calibration", "last_performed": 1635348228, "cmd_code": "calib_rate", "message": "Ensure patient is disconnected from ventilator"}, "leak_test": {"label": "Leak Test", "last_performed": 1635348230, "cmd_code": "leak_test", "message": "Ensure patient is disconnected from ventilator"}}
\ No newline at end of file \ No newline at end of file
...@@ -150,7 +150,8 @@ class ModeHandler(PayloadHandler): ...@@ -150,7 +150,8 @@ class ModeHandler(PayloadHandler):
self.mainSpinDict[widget].manuallyUpdated = False self.mainSpinDict[widget].manuallyUpdated = False
else: else:
logging.debug("do nothing in clinical") logging.debug("do nothing in clinical")
self.active_payload() #self.active_payload()
self.on_timeout()
self.refresh_button_colour() self.refresh_button_colour()
self.refresh_main_button_colour() self.refresh_main_button_colour()
...@@ -169,12 +170,14 @@ class ModeHandler(PayloadHandler): ...@@ -169,12 +170,14 @@ class ModeHandler(PayloadHandler):
self.mainSpinDict[widget].manuallyUpdated = False self.mainSpinDict[widget].manuallyUpdated = False
self.NativeUI.q_send_cmd('GET_TARGETS', mode.replace("/", "_").replace("-", "_")) self.NativeUI.q_send_cmd('GET_TARGETS', mode.replace("/", "_").replace("-", "_"))
self.active_payload() #self.active_payload()
self.on_timeout()
self.refresh_button_colour() self.refresh_button_colour()
self.refresh_main_button_colour() self.refresh_main_button_colour()
def handle_manual_change(self, changed_spin_key): def handle_manual_change(self, changed_spin_key):
self.active_payload() #self.active_payload()
self.on_timeout()
self.refresh_button_colour() self.refresh_button_colour()
self.refresh_main_button_colour() self.refresh_main_button_colour()
......
...@@ -78,7 +78,8 @@ class StartupHandler( ...@@ -78,7 +78,8 @@ class StartupHandler(
assert self.activeWidget is not None assert self.activeWidget is not None
calibrationWidget = self.activeWidget calibrationWidget = self.activeWidget
if 'calibration' in calibrationWidget.infoDict['label']: if 'calibration' in calibrationWidget.infoDict['label']:
self.NativeUI.q_send_cmd("DO_CALIBRATION", "DO_CALIBRATIONING") #self.NativeUI.q_send_cmd("DO_CALIBRATION", "DO_CALIBRATIONING")
self.NativeUI.q_send_cmd("DO_CALIBRATION", "DO_CALIBRATION")
elif 'Leak_Test' in calibrationWidget.infoDict['label']: elif 'Leak_Test' in calibrationWidget.infoDict['label']:
self.NativeUI.q_send_cmd() self.NativeUI.q_send_cmd()
else: else:
......
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