LonelyWolf / stm32

STM32 stuff
The Unlicense
949 stars 496 forks source link

nRF24_ReadPayload for Dynamic Payload #23

Open Sergey1560 opened 4 years ago

Sergey1560 commented 4 years ago

In function nRF24_ReadPayload: *length = nRF24_ReadReg(nRF24_REG_RX_PW_P0 + pipe); It works only for fixed size payload. I suggest replacing with: *length = nRF24_ReadReg(CMD_R_RX_PL_WID); This will work for both fixed size and dynamic.