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

RFM69 FIFO Threshold Value #1507

Open
erikjlane opened this issue Sep 10, 2021 · 0 comments
Open

RFM69 FIFO Threshold Value #1507

erikjlane opened this issue Sep 10, 2021 · 0 comments

Comments

@erikjlane
Copy link

At this line:

#define RFM69_FIFOTHRESH_TXSTART_FIFONOTEMPTY 0x80 // Recommended default

It states that the recommended default for the FIFO Threshold is the FIFONOTEMPTY version of the constant.

However, when the setting is set, this recommendation is violated.

{ RFM69_REG_FIFOTHRESH, RFM69_FIFOTHRESH_TXSTART_FIFOTHRESH | (RFM69_HEADER_LEN - 1) }, // start transmitting when rfm69 header loaded, fifo level irq when header bytes received (irq asserted when n bytes exceeded)

Is there a reason for this that just didn't make it into the comments of the code, or is this an error and it should be corrected to use the 'not empty' setting for the FIFO?

I didn't want to do a pull request without being sure, and I also wasn't sure about such a minor revision.

But I'm figuring out all the differences so that I can use an Adafruit Radio Bonnet https://www.adafruit.com/product/4072 to monitor the messages being passed to do some troubleshooting. Their radio default modulation scheme is different, so I'm having to go in and tweak a number of them to make everything work. In the process I ran across this discrepancy. I fixed it in my local code, but having to change it for every time I pull the code to use with a new module would be a pain, and I would also prefer to not fork the library just for this.

Thanks!

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