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!
|
@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? |
|
Thanks for looking into this, @maholli!
Oh, that's interesting. I assumed it'd be the same as Agree that needs some more testing to be confident about it, so will merge this less ambitious PR first! |
|
Squashed and pushed as single commit 9f7f99b Thanks again! |
@projectgus thank YOU for all your awesome work. Feel free to tag me if/when you start working on the other fixes and I'll help if I can. |
Fixes #1112 which causes corrupt packets to silently be passed as valid by the driver.