Skip to content

Commit b2310b6

Browse files
Thalleykartben
authored andcommitted
tests: Bluetooth: Tester: Do not send MICP Mute ev on write cb
When the BT Tester gets the write response, it should not send the state change event, as the write response may come before the notifications, and in which case the state may not have changed. The BT Tester should always wait for the state change notification before sending the event. Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
1 parent 759ddf2 commit b2310b6

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

tests/bluetooth/tester/src/audio/btp_micp.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,6 @@ static void micp_mic_ctlr_mute_written_cb(struct bt_micp_mic_ctlr *mic_ctlr, int
9999
struct bt_conn *conn;
100100

101101
bt_micp_mic_ctlr_conn_get(mic_ctlr, &conn);
102-
btp_send_micp_mute_state_ev(conn, err, mute_state);
103102

104103
LOG_DBG("MICP Mute Written cb (%d))", err);
105104
}
@@ -109,7 +108,6 @@ static void micp_mic_ctlr_unmute_written_cb(struct bt_micp_mic_ctlr *mic_ctlr, i
109108
struct bt_conn *conn;
110109

111110
bt_micp_mic_ctlr_conn_get(mic_ctlr, &conn);
112-
btp_send_micp_mute_state_ev(conn, err, mute_state);
113111

114112
LOG_DBG("MICP Mute Unwritten cb (%d))", err);
115113
}

0 commit comments

Comments
 (0)