jpbarraca / pynrf24

Python port of the RF24 library for NRF24L01+ radios.
GNU General Public License v2.0
152 stars 84 forks source link

Explicitly define timeout parameter in irqWait #34

Closed diodelass closed 3 years ago

diodelass commented 7 years ago

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.

tsaarni commented 7 years ago

Thanks @GreeningGalaxy, I got bitten by this bug too and I can confirm that this pull request fixed the problem. I hope @jpbarraca could merge this.