Skip to content

Commit

Permalink
Merge branch 'bugfix/fixed_assert_on_esp32c2_v5.2' into 'release/v5.2'
Browse files Browse the repository at this point in the history
fix(ble): fixed crash issue during deinit host after deinit controller on ESP32-C2 (v5.2)

See merge request espressif/esp-idf!33206
  • Loading branch information
jack0c committed Sep 5, 2024
2 parents cfd8a30 + edea4da commit da9536d
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,10 @@ esp_vhci_host_register_callback(const esp_vhci_host_callback_t *callback)
void
esp_vhci_host_send_packet(uint8_t *data, uint16_t len)
{
if (esp_bt_controller_get_status() != ESP_BT_CONTROLLER_STATUS_ENABLED) {
return;
}

hci_driver_vhci_tx(data[0], data, len, HCI_DRIVER_DIR_H2C);
}

Expand Down

0 comments on commit da9536d

Please sign in to comment.