Skip to content

Commit 4991ebf

Browse files
committed
Merge branch 'bugfix/fixed_assert_on_esp32c2_v5.0' into 'release/v5.0'
fix(ble): fixed crash issue during deinit host after deinit controller on ESP32-C2 (v5.0) See merge request espressif/esp-idf!33208
2 parents 31ac787 + b6fefda commit 4991ebf

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

components/bt/porting/transport/driver/vhci/hci_driver_standard.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,10 @@ esp_vhci_host_register_callback(const esp_vhci_host_callback_t *callback)
139139
void
140140
esp_vhci_host_send_packet(uint8_t *data, uint16_t len)
141141
{
142+
if (esp_bt_controller_get_status() != ESP_BT_CONTROLLER_STATUS_ENABLED) {
143+
return;
144+
}
145+
142146
hci_driver_vhci_tx(data[0], data, len, HCI_DRIVER_DIR_H2C);
143147
}
144148

0 commit comments

Comments
 (0)