mirror of
https://github.com/DCC-EX/CommandStation-EX.git
synced 2024-12-23 21:01:25 +01:00
IP PORT messages on LCD line 4
This commit is contained in:
parent
6253267b5d
commit
78178c2c45
@ -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;
|
||||
|
@ -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 {
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user