Fix for: Wifi admin mode no longer works #939

Fix for: Wifi admin mode no longer works #939
1.2-legacy
Jm Casler 2021-11-28 21:56:34 -08:00
rodzic d5506bb33c
commit 623b846713
2 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -57,7 +57,7 @@ static int32_t reconnectWiFi()
if (*wifiName) {
needReconnect = false;
DEBUG_MSG("... Reconnecting to WiFi access point");
DEBUG_MSG("... Reconnecting to WiFi access point\n");
WiFi.mode(WIFI_MODE_STA);
WiFi.begin(wifiName, wifiPsw);
}

Wyświetl plik

@ -557,7 +557,7 @@ void setBluetoothEnable(bool on)
bluetoothOn = on;
if (on) {
if (!initWifi(0)) // if we are using wifi, don't turn on bluetooth also
if (!initWifi(isSoftAPForced())) // if we are using wifi, don't turn on bluetooth also
{
Serial.printf("Pre BT: %u heap size\n", ESP.getFreeHeap());
// ESP_ERROR_CHECK( heap_trace_start(HEAP_TRACE_LEAKS) );