When a pwm instance already exists for a channel, then an error should be thrown, or the existing object should be returned. Currently it creates a new object iirc.
I fixed the issue by throwing an error. See https://github.com/Tieske/rpi-gpio/tree/fix_54 Not sure if and how you can pull this. Let me know if I need to do anything
Fix added to source code library. Will be included in next release.
Log in to post a comment.
I fixed the issue by throwing an error.
See https://github.com/Tieske/rpi-gpio/tree/fix_54
Not sure if and how you can pull this. Let me know if I need to do anything
Fix added to source code library. Will be included in next release.