mirror of
https://github.com/meshtastic/firmware.git
synced 2025-04-27 10:21:40 +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,10 +50,12 @@ void deinitWifi()
|
||||
saving on the 2.4g transceiver.
|
||||
*/
|
||||
|
||||
if (isWifiAvailable()) {
|
||||
WiFi.mode(WIFI_MODE_NULL);
|
||||
DEBUG_MSG("WiFi Turned Off\n");
|
||||
// WiFi.printDiag(Serial);
|
||||
}
|
||||
}
|
||||
|
||||
// Startup WiFi
|
||||
void initWifi()
|
||||
|
Loading…
Reference in New Issue
Block a user