Skip to content

Commit 9a1dd49

Browse files
authored
Fixed missing conditional around BLE_SCHEME. (#4880)
Use of BLE_SCHEME was protected with CONFIG_BLUEDROID_ENABLED except for this one place causing compliation errors when Bluedroid is disabled. A change to use other BLE hosts for BLE scheme is outside of the scope of this PR but should be considered.
1 parent 22908cb commit 9a1dd49

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: libraries/WiFiProv/src/WiFiProv.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -55,13 +55,13 @@ static void get_device_service_name(prov_scheme_t prov_scheme, char *service_nam
5555
log_e("esp_wifi_get_mac failed!");
5656
return;
5757
}
58-
#if CONFIG_IDF_TARGET_ESP32
58+
#if CONFIG_IDF_TARGET_ESP32 && defined(CONFIG_BLUEDROID_ENABLED)
5959
if(prov_scheme == WIFI_PROV_SCHEME_BLE) {
6060
snprintf(service_name, max, "%s%02X%02X%02X",SERV_NAME_PREFIX_PROV, eth_mac[3], eth_mac[4], eth_mac[5]);
6161
} else {
6262
#endif
6363
snprintf(service_name, max, "%s%02X%02X%02X",SERV_NAME_PREFIX_PROV, eth_mac[3], eth_mac[4], eth_mac[5]);
64-
#if CONFIG_IDF_TARGET_ESP32
64+
#if CONFIG_IDF_TARGET_ESP32 && defined(CONFIG_BLUEDROID_ENABLED)
6565
}
6666
#endif
6767
}

0 commit comments

Comments
 (0)