Commit d28323aa authored by TMRh20's avatar TMRh20

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.
parent e1aaa571
...@@ -206,7 +206,7 @@ uint8_t RF24::read_payload(void* buf, uint8_t len) ...@@ -206,7 +206,7 @@ uint8_t RF24::read_payload(void* buf, uint8_t len)
} }
*current++ = SPI.transfer(csn_pin,0xff); *current++ = SPI.transfer(csn_pin,0xff);
}else{ }else{
while ( data_len-- > 1 ){ while ( data_len-- ){
*current++ = SPI.transfer(csn_pin,0xff, SPI_CONTINUE); *current++ = SPI.transfer(csn_pin,0xff, SPI_CONTINUE);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment