mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
avoid wrongly restart discovery
This commit is contained in:
parent
9185191f74
commit
9322cd93b8
@ -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) {
|
||||
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;
|
||||
}
|
||||
case ESP_BT_GAP_DISC_STATE_CHANGED_EVT: {
|
||||
|
Loading…
x
Reference in New Issue
Block a user