-
Notifications
You must be signed in to change notification settings - Fork 25
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
Error due to unused pins? #325
Comments
Thank you for reporting this in a such informative way, @christophhagen |
Can not confirm that error in v4. |
@christophhagen , Thank you for the contribution. |
I can confirm that this fixed my issue, thank you very much for the quick resolution! |
I'm facing a consistent issue (already with past versions of OctoRelay), where my configuration leads to errors that prevent OctoRelay from starting correctly.
Environment
I've installed
OctoPi
an a Raspberry Pi 5 manually, using a virtual environment and pip.The error was already present in version 4.x, and persists until the latest version 5.1.0.
Observed errors
The following two errors appear in the log:
and a bit later in the startup process:
Error investigation
It's unclear why there is always an error with pin 24, even if my configuration doesn't contain this pin.
I've tried to change my configuration in several ways, and even the default configuration produces this error for me.
Possible fix
I've looked at the source code, and the error disappears when I change the following code in the file
octoprint_octorelay/__init__.py
, lines 314-316:to:
I'm not entirely sure why this works, but it seems to prevent it from initialising pins that it should not touch (since they are inactive). With this fix my two relays work as expected.
Please let me know if you need additional details.
The text was updated successfully, but these errors were encountered: