avrcp_browsing: fix w4 sdp -> connect transition

This commit is contained in:
Matthias Ringwald 2023-04-24 14:41:06 +02:00
parent a5fff93b0a
commit 2e97cf5e0f

View File

@ -412,7 +412,7 @@ static void avrcp_browsing_handle_sdp_query_complete(avrcp_connection_t * connec
btstack_assert(false);
return;
}
if (connection_with_opposite_role->browsing_connection->state == AVCTP_CONNECTION_W4_L2CAP_CONNECTED) {
if (connection_with_opposite_role->browsing_connection->state == AVCTP_CONNECTION_W2_L2CAP_CONNECT) {
connection->browsing_connection->state = AVCTP_CONNECTION_W4_L2CAP_CONNECTED;
connection_with_opposite_role->browsing_connection->state = AVCTP_CONNECTION_W4_L2CAP_CONNECTED;