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

Updated isReceiveTimeout() to check for Preamble and SFD timeout as well #189

Merged
merged 3 commits into from
Apr 21, 2017

Conversation

alessandroportela
Copy link
Contributor

isReceiveTimeout() currently only checks to see if RXRFTO is high, but there are two other potential timeout flags-- the RX SFD timeout is enabled by default and the RX Preamble timeout can be enabled in the DRX_PRETOC (sub)register. It seems like this function should check all three of these bits rather than just RXRFTO.

Will make separate pull request to include #defines for RXPTO_BIT and RXSFDTO_BIT (21 and 26, respectively)

isReceiveTimeout() currently only checks to see if RXRFTO is high, but there are two other potential timeout flags-- the RX SFD timeout is enabled by default and the RX Preamble timeout can be enabled in the DRX_PRETOC (sub)register. It seems like this function should check all three of these bits rather than just RXRFTO.

Will make separate pull request to include #defines for RXPTO_BIT and RXSFDTO_BIT (21 and 26, respectively)
@Rotzbua
Copy link
Collaborator

Rotzbua commented Apr 19, 2017

@alessandroportela I had a short look. A general good practice hint: add your thoughts as comment into the source file. Because later nobody looks into commit or pull request notes :)

@thotro
Copy link
Owner

thotro commented Apr 21, 2017

Many thanks!

@thotro thotro merged commit 6cc7c75 into thotro:master Apr 21, 2017
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

Successfully merging this pull request may close these issues.

3 participants