Skip to content

Commit 9482bbc

Browse files
committed
Fix setting the hostname over WiFi
1 parent 9f23319 commit 9482bbc

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/net_manager.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -113,10 +113,7 @@ startClient()
113113
// DEBUG.print(" epass:");
114114
// DEBUG.println(epass.c_str());
115115

116-
#ifndef ESP32
117116
WiFi.hostname(esp_hostname.c_str());
118-
#endif // !ESP32
119-
120117
WiFi.begin(esid.c_str(), epass.c_str());
121118

122119
ledManager.setWifiMode(true, false);
@@ -421,6 +418,7 @@ net_setup()
421418
net_wifi_start();
422419

423420
#ifdef ENABLE_WIRED_ETHERNET
421+
//ETH.setHostname(esp_hostname.c_str());
424422
ETH.begin();
425423
#endif
426424

0 commit comments

Comments
 (0)