Skip to content

Commit ed45907

Browse files
committed
bt_av: clear BT_A2DP_IDLE_BIT when a2dp is connecting / disconnecting
1 parent 8abab31 commit ed45907

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

main/src/user/bt_av.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,8 @@ static void bt_av_hdl_a2d_evt(uint16_t event, void *p_param)
167167
#ifdef CONFIG_ENABLE_LED
168168
led_set_mode(2);
169169
#endif
170+
} else {
171+
xEventGroupClearBits(user_event_group, BT_A2DP_IDLE_BIT);
170172
}
171173
break;
172174
}

0 commit comments

Comments
 (0)