Skip to content
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

Merged
merged 9 commits into from
Sep 4, 2023

Conversation

benjamink
Copy link
Collaborator

Fixes #1203

@rdmark rdmark marked this pull request as ready for review September 2, 2023 19:28
@rdmark rdmark marked this pull request as draft September 2, 2023 19:29
@benjamink benjamink marked this pull request as ready for review September 3, 2023 00:19
matched_states.append(state_msgs[t])

return matched_states
if os.path.exists("/usr/bin/vcgencmd"):
Copy link
Member

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?

Copy link
Collaborator Author

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.

@rdmark rdmark merged commit b514440 into PiSCSI:develop Sep 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants