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

vcgencmd on Raspberry Pi sometimes returns -1 #155

Open
coogle opened this issue Feb 23, 2023 · 0 comments
Open

vcgencmd on Raspberry Pi sometimes returns -1 #155

coogle opened this issue Feb 23, 2023 · 0 comments

Comments

@coogle
Copy link

coogle commented Feb 23, 2023

I have a Raspberry Pi 3 (with the 7" touchscreen) which breaks the script on line 133 (roughly) where you try to extract display_state and don't expect display_power=-1 as a possible return value.

I fixed this locally by just wrapping that line in a try/catch and returning "Unknown" for this sensor, but a better patch is probably a good idea.

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

No branches or pull requests

1 participant