forked from espressif/esp-idf
Merge branch 'bugfix/no_write_evt_report_v5.0' into 'release/v5.0'
fix(bt): fixed spp not reporting write event(v5.0) See merge request espressif/esp-idf!38462
This commit is contained in:
@@ -1109,7 +1109,7 @@ void btc_spp_cb_handler(btc_msg_t *msg)
|
|||||||
break;
|
break;
|
||||||
case BTA_JV_RFCOMM_WRITE_EVT:
|
case BTA_JV_RFCOMM_WRITE_EVT:
|
||||||
osi_mutex_lock(&spp_local_param.spp_slot_mutex, OSI_MUTEX_MAX_TIMEOUT);
|
osi_mutex_lock(&spp_local_param.spp_slot_mutex, OSI_MUTEX_MAX_TIMEOUT);
|
||||||
slot = spp_find_slot_by_handle(p_data->rfc_write.handle);
|
slot = spp_find_slot_by_id(p_data->rfc_write.req_id);
|
||||||
if (!slot) {
|
if (!slot) {
|
||||||
BTC_TRACE_ERROR("%s unable to find RFCOMM slot!, handle:%d", __func__, p_data->rfc_write.handle);
|
BTC_TRACE_ERROR("%s unable to find RFCOMM slot!, handle:%d", __func__, p_data->rfc_write.handle);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user