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

pkg/semtech_loramac: add null pointer guards to semtech_loramac_radio… #11134

Merged
merged 1 commit into from
Mar 7, 2019

Conversation

jia200x
Copy link
Member

@jia200x jia200x commented Mar 7, 2019

Contribution description

See #11132 (comment)

Testing procedure

Testing procedure has to be done preferably without pull resistors (so no PR #11132).
Either touch the DIO3 in the board with a jumper wire or try to set it to high and low to trigger the interrupt. The application will crash without this PR.

Alternatively, call netdev->event_callback with NETDEV_EVENT_CAD_DONE. It will have the same effect.

Issues/PRs references

Indirectly #11132

@jia200x jia200x force-pushed the pr/fix_semtech_netdev branch from 19a2cf9 to ee93796 Compare March 7, 2019 16:36
@jia200x jia200x added Area: LoRa Area: LoRa radio support Type: bug The issue reports a bug / The PR fixes a bug (including spelling errors) Impact: minor The PR is small in size and might only require a quick look of a knowledgeable reviewer labels Mar 7, 2019
Copy link
Contributor

@MichelRottleuthner MichelRottleuthner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested with LORA_DRIVER=sx1272 make -C tests/pkg_semtech-loramac BOARD=nucleo-f303re all flash term and I-NUCLEO-SX1272D attached.
In master provoking an interrupt crashes the node, with this PR it keeps working.
Also changes are straight forward -> ACK

@MichelRottleuthner MichelRottleuthner added the CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR label Mar 7, 2019
@MichelRottleuthner MichelRottleuthner merged commit fa8031c into RIOT-OS:master Mar 7, 2019
@danpetry danpetry added this to the Release 2019.04 milestone Mar 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: LoRa Area: LoRa radio support CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR Impact: minor The PR is small in size and might only require a quick look of a knowledgeable reviewer Type: bug The issue reports a bug / The PR fixes a bug (including spelling errors)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants