From 78178c2c453e22bd73c9cd7526f22658590b9449 Mon Sep 17 00:00:00 2001 From: Ash-4 Date: Mon, 5 Feb 2024 16:05:43 -0600 Subject: [PATCH] IP PORT messages on LCD line 4 --- EthernetInterface.cpp | 4 +--- WifiESP32.cpp | 3 +-- WifiInterface.cpp | 3 +-- 3 files changed, 3 insertions(+), 7 deletions(-) diff --git a/EthernetInterface.cpp b/EthernetInterface.cpp index 5a76c29..cc4ab1b 100644 --- a/EthernetInterface.cpp +++ b/EthernetInterface.cpp @@ -188,8 +188,7 @@ bool EthernetInterface::checkLink() { LCD(4,F("%d.%d.%d.%d"), ip[0], ip[1], ip[2], ip[3]); LCD(5,F("Port:%d Eth"), IP_PORT); } else { - LCD(4,F("Ethernet UP")); - LCD(5,F("%d.%d.%d.%d:%d"), ip[0], ip[1], ip[2], ip[3], IP_PORT); + LCD(4,F("%d.%d.%d.%d:%d"), ip[0], ip[1], ip[2], ip[3], IP_PORT); } mdns.begin(Ethernet.localIP(), WIFI_HOSTNAME); // hostname mdns.addServiceRecord(WIFI_HOSTNAME "._withrottle", IP_PORT, MDNSServiceTCP); @@ -213,7 +212,6 @@ bool EthernetInterface::checkLink() { delete server; server = nullptr; LCD(4,F("Ethernet DOWN")); - LCD(5,F(" ")); } } return false; diff --git a/WifiESP32.cpp b/WifiESP32.cpp index aa73675..a61cd2c 100644 --- a/WifiESP32.cpp +++ b/WifiESP32.cpp @@ -186,8 +186,7 @@ bool WifiESP::setup(const char *SSid, LCD(4, F("IP: %s"), WiFi.localIP().toString().c_str()); LCD(5,F("PORT=%d WiFi"), IP_PORT); } else { - LCD(4, F("WiFi UP")); - LCD(5, F("%s:%d"), WiFi.localIP().toString().c_str(), IP_PORT); + LCD(4, F("%s:%d"), WiFi.localIP().toString().c_str(), IP_PORT); } wifiUp = true; } else { diff --git a/WifiInterface.cpp b/WifiInterface.cpp index 014b7e9..29a94f2 100644 --- a/WifiInterface.cpp +++ b/WifiInterface.cpp @@ -370,8 +370,7 @@ wifiSerialState WifiInterface::setup2(const FSH* SSid, const FSH* password, LCD(4,F("%s"),ipString); // There is not enough room on some LCDs to put a title to this LCD(5,F("PORT=%d WiFi"),port); } else { - LCD(4,F("WiFi UP")); - LCD(5,F("%s:%d"), ipString, port); + LCD(4,F("%s:%d"), ipString, port); } } if (!checkForOK(1000, true, false)) return WIFI_DISCONNECTED;