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

Max retransmit masked #15

Open
LucasHaug opened this issue Feb 12, 2024 · 0 comments
Open

Max retransmit masked #15

LucasHaug opened this issue Feb 12, 2024 · 0 comments
Labels
bug Something isn't working good first issue Good for newcomers

Comments

@LucasHaug
Copy link
Member

In the current state of the code, the module's maximum retransmission error status is masked by the platform status, making it impossible to know when the transmitter was not able to send any packet.

STM32RF24/src/rf24.c

Lines 692 to 696 in f2b4001

dev_status = RF24_MAX_RETRANSMIT;
status_reg.max_rt = 1; // Datasheet says to write 1 to clear the interruption bit.
platform_status = rf24_platform_write_reg8(&(p_dev->platform_setup), NRF24L01_REG_STATUS, status_reg.value);
dev_status = (platform_status == RF24_PLATFORM_SUCCESS) ? (RF24_SUCCESS) : (RF24_ERROR_CONTROL_INTERFACE);

@LucasHaug LucasHaug added bug Something isn't working good first issue Good for newcomers labels Feb 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant