Fix: Missing byte with due RX

- SPI transfer fix to read every available byte in the payload with
payloads less than 32 bytes with dynamic payload size disabled.
This commit is contained in:
TMRh20
2014-04-06 08:49:35 -06:00
parent e1aaa57172
commit d28323aadc
+1 -1
View File
@@ -206,7 +206,7 @@ uint8_t RF24::read_payload(void* buf, uint8_t len)
}
*current++ = SPI.transfer(csn_pin,0xff);
}else{
while ( data_len-- > 1 ){
while ( data_len-- ){
*current++ = SPI.transfer(csn_pin,0xff, SPI_CONTINUE);
}