forked from espressif/esp-idf
Merge branch 'bugfix/correct_cod_check_v4.1' into 'release/v4.1'
esp-idf: Corrected check of Class of Device for discovered devices (v4.1) See merge request espressif/esp-idf!13021
This commit is contained in:
@ -149,7 +149,8 @@ static void update_device_info(esp_bt_gap_cb_param_t *param)
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (!esp_bt_gap_is_valid_cod(cod) ||
|
if (!esp_bt_gap_is_valid_cod(cod) ||
|
||||||
!(esp_bt_gap_get_cod_major_dev(cod) == ESP_BT_COD_MAJOR_DEV_PHONE)) {
|
(!(esp_bt_gap_get_cod_major_dev(cod) == ESP_BT_COD_MAJOR_DEV_PHONE) &&
|
||||||
|
!(esp_bt_gap_get_cod_major_dev(cod) == ESP_BT_COD_MAJOR_DEV_AV))) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user