1
0
mirror of https://github.com/DCC-EX/CommandStation-EX.git synced 2025-02-21 08:16:04 +01:00

Compare commits

..

No commits in common. "c8c3697fa00fd468b0e19b89b46ae3f01ea9779e" and "92288603bfefa75561180dc39151e4bbbc6ce054" have entirely different histories.

2 changed files with 3 additions and 5 deletions

View File

@ -239,18 +239,16 @@ void EthernetInterface::loop2() {
DIAG(F("Ethernet outboundRing socket=%d error"), socketOut);
} else if (socketOut >= 0) {
int count=outboundRing->count();
if (Diag::ETHERNET) DIAG(F("Ethernet reply socket=%d, count=:%d"), socketOut,count);
{
char tmpbuf[count+1]; // one extra for '\0'
for(int i=0;i<count;i++) {
tmpbuf[i] = outboundRing->read();
}
tmpbuf[count]=0;
if (Diag::ETHERNET)
DIAG(F("Ethernet reply socket=%d, count=%d, buf:%e"), socketOut,count,tmpbuf);
clients[socketOut].write(tmpbuf,count);
}
// do trust write does its thing and not flush
// clients[socketOut].flush(); //maybe
clients[socketOut].flush(); //maybe
}
looptimer(8000, F("Ethloop after outbound"));

View File

@ -1 +1 @@
#define GITHUB_SHA "devel-fozzie-202408091233Z"
#define GITHUB_SHA "devel-fozzie-202408090945Z"