mirror of
https://github.com/meshtastic/firmware.git
synced 2025-04-26 09:59:01 +00:00
Merge pull request #1290 from raldi/master
Get side effects out of DEBUG_MSG
This commit is contained in:
commit
f7f783b48b
@ -205,11 +205,12 @@ bool initWifi(bool forceSoftAP)
|
|||||||
if (forcedSoftAP) {
|
if (forcedSoftAP) {
|
||||||
const char *softAPssid = "meshtasticAdmin";
|
const char *softAPssid = "meshtasticAdmin";
|
||||||
const char *softAPpasswd = "12345678";
|
const char *softAPpasswd = "12345678";
|
||||||
|
int ok = WiFi.softAP(softAPssid, softAPpasswd);
|
||||||
DEBUG_MSG("Starting (Forced) WIFI AP: ssid=%s, ok=%d\n", softAPssid, WiFi.softAP(softAPssid, softAPpasswd));
|
DEBUG_MSG("Starting (Forced) WIFI AP: ssid=%s, ok=%d\n", softAPssid, ok);
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
DEBUG_MSG("Starting WIFI AP: ssid=%s, ok=%d\n", wifiName, WiFi.softAP(wifiName, wifiPsw));
|
int ok = WiFi.softAP(wifiName, wifiPsw);
|
||||||
|
DEBUG_MSG("Starting WIFI AP: ssid=%s, ok=%d\n", wifiName, ok);
|
||||||
}
|
}
|
||||||
|
|
||||||
WiFi.softAPConfig(apIP, apIP, IPAddress(255, 255, 255, 0));
|
WiFi.softAPConfig(apIP, apIP, IPAddress(255, 255, 255, 0));
|
||||||
|
Loading…
Reference in New Issue
Block a user