Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nRF24_ReadPayload for Dynamic Payload #23

Open
Sergey1560 opened this issue Jan 10, 2020 · 0 comments
Open

nRF24_ReadPayload for Dynamic Payload #23

Sergey1560 opened this issue Jan 10, 2020 · 0 comments

Comments

@Sergey1560
Copy link

Sergey1560 commented Jan 10, 2020

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant