Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
H
HEV - High Energy Ventilator
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
5
Issues
5
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
HEV - High Energy Ventilator
Commits
d742f838
Commit
d742f838
authored
Jun 21, 2021
by
Tiago Sarmento
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tweaks to run on ventilator
parent
5c5b4579
Pipeline
#1844
failed with stages
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
measurement_handler.py
NativeUI/handler_library/measurement_handler.py
+1
-0
startup_handler.py
NativeUI/widget_library/startup_handler.py
+2
-2
No files found.
NativeUI/handler_library/measurement_handler.py
View file @
d742f838
...
...
@@ -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
NativeUI/widget_library/startup_handler.py
View file @
d742f838
...
...
@@ -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'
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment