mirror of
https://github.com/meshtastic/firmware.git
synced 2025-05-01 03:39:18 +00:00
Fix for #533 - deinitWifi() will de initialize the radio even if it was never initialized
This commit is contained in:
parent
1ba91ec27f
commit
7d4c77abfd
@ -50,9 +50,11 @@ void deinitWifi()
|
|||||||
saving on the 2.4g transceiver.
|
saving on the 2.4g transceiver.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
WiFi.mode(WIFI_MODE_NULL);
|
if (isWifiAvailable()) {
|
||||||
DEBUG_MSG("WiFi Turned Off\n");
|
WiFi.mode(WIFI_MODE_NULL);
|
||||||
// WiFi.printDiag(Serial);
|
DEBUG_MSG("WiFi Turned Off\n");
|
||||||
|
// WiFi.printDiag(Serial);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Startup WiFi
|
// Startup WiFi
|
||||||
@ -118,7 +120,7 @@ void initWifi()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!MDNS.begin( "Meshtastic" )) {
|
if (!MDNS.begin("Meshtastic")) {
|
||||||
DEBUG_MSG("Error setting up MDNS responder!\n");
|
DEBUG_MSG("Error setting up MDNS responder!\n");
|
||||||
|
|
||||||
while (1) {
|
while (1) {
|
||||||
|
Loading…
Reference in New Issue
Block a user