mirror of
https://github.com/richonguzman/LoRa_APRS_iGate.git
synced 2026-03-06 21:43:51 +01:00
update wifi aprsis check
This commit is contained in:
parent
27f73d0a11
commit
df90b89396
|
|
@ -246,31 +246,10 @@ void loop() {
|
|||
WiFi.reconnect();
|
||||
previousWiFiMillis = currentWiFiMillis;
|
||||
}
|
||||
|
||||
if (!espClient.connected()) {
|
||||
APRS_IS_Utils::connect();
|
||||
}
|
||||
|
||||
/*if (WiFi.status() == WL_CONNECTED) {
|
||||
wifiState = "OK";
|
||||
} else {
|
||||
wifiState = "--";
|
||||
if (!Config.display.alwaysOn) {
|
||||
display_toggle(true);
|
||||
}
|
||||
lastRxTxTime = millis();
|
||||
}
|
||||
if (espClient.connected()) {
|
||||
aprsisState = "OK";
|
||||
} else {
|
||||
aprsisState = "--";
|
||||
if (!Config.display.alwaysOn) {
|
||||
display_toggle(true);
|
||||
}
|
||||
lastRxTxTime = millis();
|
||||
}*/
|
||||
secondLine = APRS_IS_Utils::checkStatus();// "WiFi: " + wifiState + "/ APRS-IS: " + aprsisState;
|
||||
|
||||
show_display(firstLine, secondLine, thirdLine, fourthLine, 0);
|
||||
|
||||
while (espClient.connected()) {
|
||||
|
|
@ -282,7 +261,6 @@ void loop() {
|
|||
}
|
||||
thirdLine = "";
|
||||
fourthLine = "";
|
||||
|
||||
if (!Config.display.keepLastPacketOnScreen) {
|
||||
show_display(firstLine, secondLine, thirdLine, fourthLine, 0);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue