1
0
mirror of https://github.com/DCC-EX/CommandStation-EX.git synced 2024-12-23 12:51:24 +01:00

Diag outgoing messages on ESP32

This commit is contained in:
Harald Barth 2022-08-20 11:45:29 +02:00
parent 11c5dc5f06
commit 4fb53572f5

View File

@ -294,6 +294,8 @@ void WifiESP::loop() {
// buffer filled, end with '\0' so we can use it as C string
buffer[count]='\0';
if((unsigned int)clientId <= clients.size() && clients[clientId].ok()) {
if (Diag::CMD || Diag::WITHROTTLE)
DIAG(F("SEND %d:%s"), clientId, buffer);
clients[clientId].wifi.write(buffer,count);
} else {
DIAG(F("Unsent(%d): %s"), clientId, buffer);