Skip to content

espressif: don't do ble resets if adapter is not enabled; can cause crashes#11051

Open
dhalbert wants to merge 1 commit into
adafruit:mainfrom
dhalbert:espressif-ble-reset-fix
Open

espressif: don't do ble resets if adapter is not enabled; can cause crashes#11051
dhalbert wants to merge 1 commit into
adafruit:mainfrom
dhalbert:espressif-ble-reset-fix

Conversation

@dhalbert

Copy link
Copy Markdown
Collaborator

This fixes a regression caused by #11036.

Aspects of _bleio.Adapter were being reset when the adapter was not enabled. In particular, this caused connection cleanup to be done without connection->CONN_HANDLE == BLEIO_HANDLE_INVALID. This caused memory errors. #11036 added the connection cleanup, exposing this bug.

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.

1 participant