Skip to content

Conversation

@pemensik
Copy link

@pemensik pemensik commented Mar 7, 2021

Original RPi.GPIO calls callback with channel number as parameter.
Correctl callbacks list usage and pass channel number to callback.
Fixes pibrella example.

Original RPi.GPIO calls callback with channel number as parameter.
Correctl callbacks list usage and pass channel number to callback.
Fixes pibrella example.
@pemensik
Copy link
Author

pemensik commented Mar 7, 2021

Fixes my test of pibrella siren on Fedora.

Original C version allows repeated PWM.start() calls, because it just
ignores start() call once helper thread is running. Emulate such
behaviour and avoid printing warnings if already started.

Fixes issue underground-software#53.
@theyoyojo
Copy link
Contributor

Hi, thanks for the contribution. It looks like a good fix, but one of the tests (tests/test_gpio.py:test_add_event_detect_edge_conditions) seems to be running into some issues. I am looking into it.

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.

2 participants