jpbarraca / pynrf24

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

Bug in whatHappened method #15

Closed arthurxie closed 8 years ago

arthurxie commented 8 years ago

Because write_register() method does not return any value, so the status will be None:

status = self.write_register(NRF24.STATUS, NRF24.RX_DR | NRF24.TX_DS | NRF24.MAX_RT)

Change to:

status = self.get_status()
self.clear_irq_flags()
jpbarraca commented 8 years ago

Thanks. Changed pushed.