lora: Fix IRQ bit mask for sx126x#1113
Conversation
Fixes micropython#1112 which causes corrupt packets to silently be passed as valid by the driver.
projectgus
left a comment
There was a problem hiding this comment.
Hi @maholli, sorry it took me a little while to get back to this. Thanks for very clear description of the problem and the fix.
I have a request about the code comment surrounding this change, and also please edit micropython/lora/lora-sx126x/manifest.py and bump the bugfix version of this package so mip will update it.
Thanks again!
| @@ -233,7 +233,7 @@ def __init__( | |||
There was a problem hiding this comment.
These comments are for the old (broken) code, so please change it to say something "just the IRQs that the driver is interrupted by or needs to read back via a status command" and remove the second "Note:" comment entirely.
|
@maholli I went to apply the suggestions above so I could quickly merge this, but I realised that there's another bug here - if I've pushed a fix here: projectgus@44b6fca Any chance you're in a position to test this? If it looks good to you then you can cherry-pick it here, or I can open a new PR. |
@projectgus I think this would cause unwanted (or at the very least, different) behavior compared to the current lib. I agree that including So I agree that the driver could use other tweaks, but I think it'll take dedicated time to test and understand the implications of the changes - deserving more time and attention than I have to spare :) Thoughts? |
Fixes #1112 which causes corrupt packets to silently be passed as valid by the driver.