Skip to content
This repository was archived by the owner on Dec 19, 2024. It is now read-only.

Remove GPIO.cleanup() to support multi-instance #61

Open
robolize opened this issue Aug 27, 2021 · 0 comments
Open

Remove GPIO.cleanup() to support multi-instance #61

robolize opened this issue Aug 27, 2021 · 0 comments

Comments

@robolize
Copy link

Please remove the call to "GPIO.cleanup()" in the initialization. With this line in the code, you cannot have more than one instance of the filament sensors functional at any time. I am running 2 printers from my octoprint setup. I could not get both to work until I commented out that line.
Also, this line is impacting other plugins which are trying to use the GPIO interface.

I was clued into this by an issue raised in another plugin here, kantlivelong/OctoPrint-PSUControl#176

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant