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:
@@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user