-
-
Notifications
You must be signed in to change notification settings - Fork 82
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix test failures in low-voltage PR #1207
Conversation
28bdbd9
to
78ccefc
Compare
667ad17
to
bdde7b0
Compare
python/common/src/piscsi/sys_cmds.py
Outdated
matched_states.append(state_msgs[t]) | ||
|
||
return matched_states | ||
if os.path.exists("/usr/bin/vcgencmd"): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor thing, but using a magic string literal is not ideal. Please add a code comment at least!
Alternatively, maybe detect early on in the program if we're running on RPi or not and have this branch check for that flag, for instance?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm... I think I understand what you're saying. Let me work on a cleaner implementation.
c5f19d9
to
2b9442c
Compare
Fixes #1203