From af0f26f4e804b6165cbf9c9fc349b3bd76c9e9c7 Mon Sep 17 00:00:00 2001 From: Klaus K Wilting Date: Sat, 14 Apr 2018 21:00:36 +0200 Subject: [PATCH] !REPAIR! of broken blescan.cpp --- src/blecsan.cpp | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/blecsan.cpp b/src/blecsan.cpp index e4caf769..65e58416 100644 --- a/src/blecsan.cpp +++ b/src/blecsan.cpp @@ -263,6 +263,14 @@ esp_err_t register_ble_functionality(void) }; ESP_LOGI(TAG, "Set GAP scan parameters"); + + // This function is called to set scan parameters. + status = esp_ble_gap_set_scan_params(&ble_scan_params); + if (status != ESP_OK) + { + ESP_LOGE(TAG, "esp_ble_gap_set_scan_params: rc=%d", status); + return ESP_FAIL; + } return ESP_OK ; } @@ -316,7 +324,7 @@ void bt_loop(void *ignore) while(1) { - vTaskDelay(500); + vTaskDelay(1000); yield(); }