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

Log connection errors #940

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

jbmorley
Copy link

@jbmorley jbmorley commented Jan 4, 2023

This change updates pijuice_sys.py to exit with an error when failing to connect to the PiJuice, and logs the associated error.

I was finding it hard to debug multiple service restarts as a result of i2c permission errors on my system. This logging significantly helped me figure out what was going on; hopefully it's useful to others too.

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.

1 participant