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

bleio_user_reset(): check if BLE running before doing any BLE ops #9453

Merged
merged 1 commit into from
Jul 24, 2024

Conversation

dhalbert
Copy link
Collaborator

bleio_user_reset() was trying to do SoftDevice operations after the Adapter was disabled, causing NRF_ERROR_SOFTDEVICE_NOT_ENABLED, which tried to raise an exception after the VM was shut down. Check before trying to do these operations.

@dhalbert dhalbert requested review from tannewt and jepler July 23, 2024 22:57
Copy link
Member

@jepler jepler left a comment

Choose a reason for hiding this comment

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

looks fine, didn't test.

@dhalbert dhalbert merged commit 004b677 into adafruit:9.1.x Jul 24, 2024
66 checks passed
@dhalbert dhalbert deleted the 9.1.x-fix-nordic-restart-crash branch July 24, 2024 16:50
@jepler jepler mentioned this pull request Jul 26, 2024
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

Successfully merging this pull request may close these issues.

nordic: restarting BLE advertising causes USB disconnect/reconnect or hard reset
2 participants