Skip to content

Fix test failures in low-voltage PR#1207

Merged
rdmark merged 9 commits intoPiSCSI:developfrom
benjamink:low-voltage-fixes
Sep 4, 2023
Merged

Fix test failures in low-voltage PR#1207
rdmark merged 9 commits intoPiSCSI:developfrom
benjamink:low-voltage-fixes

Conversation

@benjamink
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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