Skip to content

Commit eecde2d

Browse files
committed
[Bugfix] Crash on deinit with esp32c6/c5
1 parent adc7cae commit eecde2d

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/nimble/porting/nimble/src/nimble_port.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -228,17 +228,17 @@ nimble_port_deinit(void)
228228
return ret;
229229
}
230230

231+
#if CONFIG_BT_LE_CONTROLLER_NPL_OS_PORTING_SUPPORT
232+
na_hci_transport_deinit();
233+
#endif
234+
231235
ret = esp_bt_controller_deinit();
232236
if(ret != ESP_OK) {
233237
ESP_LOGE(NIMBLE_PORT_LOG_TAG, "controller deinit failed\n");
234238
return ret;
235239
}
236240
#endif
237241

238-
#if CONFIG_BT_LE_CONTROLLER_NPL_OS_PORTING_SUPPORT
239-
na_hci_transport_deinit();
240-
#endif
241-
242242
#if (BT_HCI_LOG_INCLUDED == TRUE)
243243
//bt_hci_log_deinit();
244244
#endif // (BT_HCI_LOG_INCLUDED == TRUE)

0 commit comments

Comments
 (0)