forked from espressif/esp-idf
Merge branch 'bugfix/a2dp_source_not_stop_discovery_correctly_v4.1' into 'release/v4.1'
bugfix/avoid wrongly restart discovery in a2dp_source (v4.1) See merge request espressif/esp-idf!18713
This commit is contained in:
@@ -250,7 +250,9 @@ void bt_app_gap_cb(esp_bt_gap_cb_event_t event, esp_bt_gap_cb_param_t *param)
|
|||||||
{
|
{
|
||||||
switch (event) {
|
switch (event) {
|
||||||
case ESP_BT_GAP_DISC_RES_EVT: {
|
case ESP_BT_GAP_DISC_RES_EVT: {
|
||||||
filter_inquiry_scan_result(param);
|
if (s_a2d_state == APP_AV_STATE_DISCOVERING) {
|
||||||
|
filter_inquiry_scan_result(param);
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case ESP_BT_GAP_DISC_STATE_CHANGED_EVT: {
|
case ESP_BT_GAP_DISC_STATE_CHANGED_EVT: {
|
||||||
|
Reference in New Issue
Block a user