Rename WEBSERVER_PORT define to USE_WEBSERVER_PORT (#3102)

This commit is contained in:
Oxan van Leeuwen
2022-01-24 00:34:38 +01:00
committed by GitHub
parent 2a84db7f85
commit c2ee0f0864
6 changed files with 9 additions and 9 deletions
@@ -95,7 +95,7 @@ std::vector<uint8_t> ImprovSerialComponent::build_rpc_settings_response_(improv:
std::vector<std::string> urls;
#ifdef USE_WEBSERVER
auto ip = wifi::global_wifi_component->wifi_sta_ip();
std::string webserver_url = "http://" + ip.str() + ":" + to_string(WEBSERVER_PORT);
std::string webserver_url = "http://" + ip.str() + ":" + to_string(USE_WEBSERVER_PORT);
urls.push_back(webserver_url);
#endif
std::vector<uint8_t> data = improv::build_rpc_response(command, urls, false);