Commit 32d22a41 authored by Benjamin Mummery's avatar Benjamin Mummery 💻

command sending for startup 'next' button

parent 663c7c27
Pipeline #1583 failed with stages
......@@ -327,7 +327,8 @@ class NativeUI(HEVClient, QMainWindow):
)
)
# TODO: command sending
# Startup next and skip buttons should move from the startup widget to the main
# display
self.widgets.nextButton.pressed.connect(
lambda: self.display_stack.setCurrentWidget(self.main_display)
)
......@@ -335,6 +336,11 @@ class NativeUI(HEVClient, QMainWindow):
lambda: self.display_stack.setCurrentWidget(self.main_display)
)
# Startup next button should send the ventilator start command.
self.widgets.nextButton.pressed.connect(
lambda: self.q_send_cmd("GENERAL", "START")
)
# Battery Display should update when we get battery info
self.battery_handler.UpdateBatteryDisplay.connect(
self.widgets.battery_display.update_status
......
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