Skip to content

Commit 660898d

Browse files
committed
Merge branch 'bugfix/no_write_evt_report' into 'master'
fix(bt): fixed spp not reporting write event Closes BTQABR2023-468 See merge request espressif/esp-idf!38327
2 parents e9bdd39 + e7a6d32 commit 660898d

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)