Skip to content

Commit 5555408

Browse files
committed
TcpServer: Periodically display data sent messages for all clients
1 parent 4bc9088 commit 5555408

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

Firmware/RTK_Everywhere/TcpServer.ino

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -146,11 +146,8 @@ int32_t tcpServerClientSendData(int index, uint8_t *data, uint16_t length)
146146
if (length > 0)
147147
tcpServerClientDataSent = tcpServerClientDataSent | (1 << index);
148148
if ((settings.debugTcpServer || PERIODIC_DISPLAY(PD_TCP_SERVER_CLIENT_DATA)) && (!inMainMenu))
149-
{
150-
PERIODIC_CLEAR(PD_TCP_SERVER_CLIENT_DATA);
151149
systemPrintf("TCP server wrote %d bytes to %s\r\n", length,
152150
tcpServerClientIpAddress[index].toString().c_str());
153-
}
154151
}
155152

156153
// Failed to write the data
@@ -240,6 +237,8 @@ int32_t tcpServerSendData(uint16_t dataHead)
240237
}
241238
tcpServerClientTails[index] = tail;
242239
}
240+
if (PERIODIC_DISPLAY(PD_TCP_SERVER_CLIENT_DATA))
241+
PERIODIC_CLEAR(PD_TCP_SERVER_CLIENT_DATA);
243242

244243
// Return the amount of space that TCP server client is using in the buffer
245244
return usedSpace;

0 commit comments

Comments
 (0)