1
0
mirror of https://github.com/DCC-EX/CommandStation-EX.git synced 2024-11-27 01:56:14 +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 filled, end with '\0' so we can use it as C string
buffer[count]='\0'; buffer[count]='\0';
if((unsigned int)clientId <= clients.size() && clients[clientId].ok()) { 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); clients[clientId].wifi.write(buffer,count);
} else { } else {
DIAG(F("Unsent(%d): %s"), clientId, buffer); DIAG(F("Unsent(%d): %s"), clientId, buffer);