Skip to content

Commit f7540d1

Browse files
committed
bt_app_av: clear ota locked bit after a2dp disconnected
1 parent 6e60cce commit f7540d1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

main/src/user/bt_app_av.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,8 @@ static void bt_av_hdl_a2d_evt(uint16_t event, void *p_param)
156156

157157
audio_mp3_play(1);
158158
led_set_mode(3);
159+
160+
xEventGroupClearBits(user_event_group, BT_OTA_LOCKED_BIT);
159161
} else if (a2d->conn_stat.state == ESP_A2D_CONNECTION_STATE_CONNECTED) {
160162
xEventGroupSetBits(user_event_group, BT_OTA_LOCKED_BIT);
161163

0 commit comments

Comments
 (0)