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
1f9911df
Commit
1f9911df
authored
Apr 22, 2021
by
Tim Powell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added error handling for incorrect inputs
parent
2a9cc583
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
battery_handler.py
NativeUI/handler_library/battery_handler.py
+2
-2
No files found.
NativeUI/handler_library/battery_handler.py
View file @
1f9911df
...
...
@@ -71,5 +71,5 @@ class BatteryHandler(Handler, QObject):
return
85.0
elif
battery_data
[
"bat85"
]
==
0
:
return
0.0
return
0.0
else
:
raise
TypeError
(
'Battery Percentage (entry
\'
bat85
\'
in the battery payload) is not 1 or 2.'
)
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