-
Notifications
You must be signed in to change notification settings - Fork 409
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
[SX127x/RF69] Added setFifoThreshold #1309
Conversation
I'm not sure I understand the use-case here. Sicne the FIFO threshold register is also being set from |
Lets assume that in FSK mode I don't know packet len. It can vary from 12 to 200 (for example), but it is defined in one of first received bytes (lets say it is 3rd received byte). So my flow is:
when first interrupt is triggered (first part of data is received) I can read packet len and:
|
That makes sense, however, the problem I have is that this will only work if the user calls Additionally, because Stream mode is not specific to SX127x, this should also be added to the RF69 class. |
I see one option, remove btw, probably CC1101 also can be updated. |
I was thinking about that too, and backwards compatibility can be addressed by using a default value. The thing I'm more worried about is repeatedly calling Probably the easiest option is to just make this limitation explicit in the description of the EDIT: Regarding the CC1101, it doesn't support Stream mode yet, so we don't have to worry about it for now. |
Looks good now - merged, thank you for the contribution! |
This PR add possibility to set custom FIFO threshold level.