Skip to content

Commit 9b85ddc

Browse files
committed
Some fixes given by copilot
1 parent 3fecfcb commit 9b85ddc

2 files changed

Lines changed: 2 additions & 4 deletions

File tree

Firmware_ESP8266/ESP8266_Utils.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -288,8 +288,6 @@ void ESP8266Utils_checkScanResults() {
288288
net.channel,
289289
net.encryption.c_str());
290290
}
291-
292-
WiFi.reconnect();
293291
}
294292
}
295293

Firmware_ESP8266/lcd.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -386,7 +386,8 @@ void pantalla_handleButtonInMenu(
386386
// each time we enter this menu.
387387
ESP8266Utils_startWifiScanIfNeeded();
388388
ESP8266Utils_checkScanResults();
389-
static int previousCurrentIndex = 1;
389+
static int previousCurrentIndex = 1; // Start at 1 so in the first iteration we can
390+
// select the first network.
390391
int countNetworks = ESP8266Utils_getTrackedNetworkCount();
391392
int currentIndex = ESP8266Utils_getIndexBySsid(adjustedSSID);
392393
if ((currentIndex < 0) && (countNetworks > 0) && (previousCurrentIndex > 0)) {
@@ -869,7 +870,6 @@ void pantalla_actualizarMenuConfigWifiResultado(String* lcdBuffer) {
869870
*lcdBuffer += String("WIFI: CONECTADO ");
870871
*lcdBuffer += String("< OK>");
871872
} else {
872-
int porcentaje = ESP8266Utils_getWifiConnectionPercentage();
873873
if (porcentaje == 100) {
874874
*lcdBuffer += String("WIFI: FALLIDO ");
875875
} else {

0 commit comments

Comments
 (0)