Remove Captive Portal and SoftAP Mode

This commit is contained in:
Thomas Göttgens
2022-10-25 11:53:22 +02:00
parent 761804b17a
commit 338c9c1e0c
6 changed files with 41 additions and 165 deletions

View File

@@ -191,8 +191,6 @@ void setup()
digitalWrite(RESET_OLED, 1);
#endif
bool forceSoftAP = 0;
#ifdef BUTTON_PIN
#ifdef ARCH_ESP32
@@ -205,12 +203,6 @@ void setup()
delay(10);
#endif
// BUTTON_PIN is pulled high by a 12k resistor.
if (!digitalRead(BUTTON_PIN)) {
forceSoftAP = 1;
DEBUG_MSG("Setting forceSoftAP = 1\n");
}
#endif
#endif
@@ -444,7 +436,7 @@ void setup()
#endif
// Initialize Wifi
initWifi(forceSoftAP);
initWifi();
#ifdef ARCH_ESP32
// Start web server thread.