Merge branch 'bugfix/fix_bluedroid_host_build_warning_when_log_is_disabled' into 'master'

Fixed bluedroid host build warning when log is disabled

See merge request espressif/esp-idf!24003
This commit is contained in:
Jiang Jiang Jian 2023-06-20 15:51:11 +08:00
commit 7cea35193b
2 changed files with 2 additions and 0 deletions

View File

@ -405,6 +405,7 @@ static void command_timed_out(void *context)
{
hci_cmd_metadata_t *metadata = (hci_cmd_metadata_t *)(wait_entry->data);
HCI_TRACE_ERROR("%s hci layer timeout waiting for response to a command. opcode: 0x%x", __func__, metadata->opcode);
UNUSED(metadata);
}
}

View File

@ -807,6 +807,7 @@ void l2cble_process_sig_cmd (tL2C_LCB *p_lcb, UINT8 *p, UINT16 pkt_len)
STREAM_TO_UINT16(mps, p);
STREAM_TO_UINT16(credits, p);
L2CAP_TRACE_DEBUG("%s spsm %x, scid %x", __func__, spsm, scid);
UNUSED(spsm);
p_ccb = l2cu_find_ccb_by_remote_cid(p_lcb, scid);
if (p_ccb) {