esp_hidh_dev_open() doesn't give a toss about BLE address types in our case

This commit is contained in:
demik 2024-08-10 13:12:48 +02:00
parent bb52d6057a
commit 85fcf88209

View File

@ -593,7 +593,11 @@ void blue_scan(void *pvParameters) {
/* try to connect to the last candidate found */
if (mouse)
#if CONFIG_BT_BLE_ENABLED
esp_hidh_dev_open(mouse->bda, mouse->transport, mouse->ble.addr_type);
#else
esp_hidh_dev_open(mouse->bda, mouse->transport, NULL);
#endif
else
ESP_LOGI(TAG, "devices found but no mouse detected");