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

Typo in setup() function argument #18

Closed
tmandys opened this issue Jul 6, 2024 · 2 comments
Closed

Typo in setup() function argument #18

tmandys opened this issue Jul 6, 2024 · 2 comments

Comments

@tmandys
Copy link

tmandys commented Jul 6, 2024

def setup(chanlist, direction, pull_up_down=PUD_OFF, initial=None):
....
-       if _warnings and gpio in (2, 3) and pull in (PUD_UP, PUD_DOWN):
+       if _warnings and gpio in (2, 3) and pull_up_down in (PUD_UP, PUD_DOWN):
@LPS13
Copy link

LPS13 commented Jul 26, 2024

I found this error as well. Trying to get the SafeShutdown.py script for my RetroFlag NESPi 4 case to function again after an OS upgrade.

@waveform80
Copy link
Owner

Closing as a duplicate of #16, which is in fact already fixed (originally reported in #8) but which apparently still exists in some distro's packaged releases. Could I ask which distro and which version of that distro you're using? E.g. RaspiOS bullseye or something like that?

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

3 participants