mirror of
https://github.com/espressif/esp-idf.git
synced 2026-10-02 03:00:34 +03:00
Merge branch 'bugfix/fix_ble_sync_cmd_command_status_err' into 'master'
fix(ble/bluedroid): unblock sync HCI cmd on Command Status error Closes BLERP-2926 See merge request espressif/esp-idf!49965
This commit is contained in:
@@ -1965,6 +1965,11 @@ static void btu_hcif_command_status_evt(uint8_t status, BT_HDR *command, void *c
|
||||
{
|
||||
BT_HDR *event = osi_calloc(sizeof(BT_HDR) + sizeof(command_status_hack_t));
|
||||
command_status_hack_t *hack = (command_status_hack_t *)&event->data[0];
|
||||
#if ((BLE_50_FEATURE_SUPPORT == TRUE) || (BLE_42_FEATURE_SUPPORT == TRUE))
|
||||
if (status != HCI_SUCCESS) {
|
||||
btsnd_hci_ble_set_status(status);
|
||||
}
|
||||
#endif // #if ((BLE_50_FEATURE_SUPPORT == TRUE) || (BLE_42_FEATURE_SUPPORT == TRUE))
|
||||
|
||||
hack->callback = btu_hcif_command_status_evt_on_task;
|
||||
hack->status = status;
|
||||
|
||||
Reference in New Issue
Block a user