jobin-sun / raspberry-gpio-python

Automatically exported from code.google.com/p/raspberry-gpio-python
MIT License
0 stars 0 forks source link

Patch for /source/py_gpio.c #28

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I found that calling add_event_detect for multiple GPIOs only resulted in the 
first one getting called. e.g. in this case cb2 would never get called:
GPIO.add_event_detect(17, GPIO.BOTH, callback=cb1)
GPIO.add_event_detect(27, GPIO.BOTH, callback=cb2)

This makes sure it gets run for all GPIOs.

Original issue reported on code.google.com by philip...@gmail.com on 11 Mar 2013 at 12:22

Attachments:

GoogleCodeExporter commented 9 years ago

Original comment by btcros...@googlemail.com on 11 Mar 2013 at 10:54

GoogleCodeExporter commented 9 years ago
Included in release 0.5.1a

Original comment by btcros...@googlemail.com on 15 Mar 2013 at 4:47