Currently, the timeout parameter in irqWait passes improperly to the call to GPIO.wait_for_edge, setting the bouncetime parameter instead. This causes the example recv.py script to fail, as packets sent more frequently than the bouncetime setting (30 seconds by default) cause the IRQ pin to go low without being caught by the GPIO.wait_for_edge, which completely hangs the script.
This is easily fixed by specifying the parameter name explicitly.
Currently, the
timeout
parameter in irqWait passes improperly to the call toGPIO.wait_for_edge
, setting thebouncetime
parameter instead. This causes the examplerecv.py
script to fail, as packets sent more frequently than thebouncetime
setting (30 seconds by default) cause the IRQ pin to go low without being caught by theGPIO.wait_for_edge
, which completely hangs the script. This is easily fixed by specifying the parameter name explicitly.