Skip to content

Commit e7a6d32

Browse files
xiongweichaoespressif-bot
authored andcommitted
fix(bt): fixed spp not reporting write event
1 parent 1c6405e commit e7a6d32

File tree

1 file changed

+1
-1
lines changed
  • components/bt/host/bluedroid/btc/profile/std/spp

1 file changed

+1
-1
lines changed

components/bt/host/bluedroid/btc/profile/std/spp/btc_spp.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1109,7 +1109,7 @@ void btc_spp_cb_handler(btc_msg_t *msg)
11091109
break;
11101110
case BTA_JV_RFCOMM_WRITE_EVT:
11111111
osi_mutex_lock(&spp_local_param.spp_slot_mutex, OSI_MUTEX_MAX_TIMEOUT);
1112-
slot = spp_find_slot_by_handle(p_data->rfc_write.handle);
1112+
slot = spp_find_slot_by_id(p_data->rfc_write.req_id);
11131113
if (!slot) {
11141114
BTC_TRACE_ERROR("%s unable to find RFCOMM slot!, handle:%d", __func__, p_data->rfc_write.handle);
11151115
}

0 commit comments

Comments
 (0)