spirilis / msprf24

nRF24L01+ Library for MSP430 microcontroller line
ISC License
102 stars 32 forks source link

Infinite loops in w_tx_addr and w_rx_addr #10

Closed rbasoalto closed 10 years ago

rbasoalto commented 10 years ago

I'm porting your driver to mspgcc and notice these two bugs, currently in lines 83 and 100 of msprf24.c:

for (i=rf_addr_width-1; i>=0; i--) {

The condition will always be true, since i is uint16_t.

rbasoalto commented 10 years ago

See Pull Request #11

spirilis commented 10 years ago

Fixed this and many others in my latest update. Seems I never quite tested the last major change to the codebase...