Skip to content

Commit d28323a

Browse files
committed
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.
1 parent e1aaa57 commit d28323a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

RF24.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ uint8_t RF24::read_payload(void* buf, uint8_t len)
206206
}
207207
*current++ = SPI.transfer(csn_pin,0xff);
208208
}else{
209-
while ( data_len-- > 1 ){
209+
while ( data_len-- ){
210210
*current++ = SPI.transfer(csn_pin,0xff, SPI_CONTINUE);
211211
}
212212

0 commit comments

Comments
 (0)