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

better name

This commit is contained in:
Harald Barth 2024-08-09 11:57:54 +02:00
parent 127f3acce5
commit 80c8b3ef62

View File

@ -241,12 +241,12 @@ void EthernetInterface::loop2() {
int count=outboundRing->count();
if (Diag::ETHERNET) DIAG(F("Ethernet reply socket=%d, count=:%d"), socketOut,count);
{
char buffer[count+1]; // one extra for '\0'
char tmpbuf[count+1]; // one extra for '\0'
for(int i=0;i<count;i++) {
buffer[i] = outboundRing->read();
tmpbuf[i] = outboundRing->read();
}
buffer[count]=0;
clients[socketOut].write(buffer,count);
tmpbuf[count]=0;
clients[socketOut].write(tmpbuf,count);
}
clients[socketOut].flush(); //maybe
}