From 85fcf88209bdca300120aea2cbee8a8ccfd62b5c Mon Sep 17 00:00:00 2001 From: demik Date: Sat, 10 Aug 2024 13:12:48 +0200 Subject: [PATCH] esp_hidh_dev_open() doesn't give a toss about BLE address types in our case --- main/blue.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/main/blue.c b/main/blue.c index feaed2d..ea0f60a 100644 --- a/main/blue.c +++ b/main/blue.c @@ -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");