mirror of
https://github.com/DCC-EX/CommandStation-EX.git
synced 2024-11-24 16:46:13 +01:00
Compare commits
1 Commits
cadde7b3ea
...
e9e1efed3f
Author | SHA1 | Date | |
---|---|---|---|
|
e9e1efed3f |
|
@ -249,7 +249,7 @@ void WifiNINA::checkForClientInput() {
|
||||||
// read data from client
|
// read data from client
|
||||||
byte cmd[len+1];
|
byte cmd[len+1];
|
||||||
for(int i=0; i<len; i++) cmd[i]=c->read();
|
for(int i=0; i<len; i++) cmd[i]=c->read();
|
||||||
cmd[len]=0x00;
|
cmd[len]=0;
|
||||||
CommandDistributor::parse(clientId,cmd,outboundRing);
|
CommandDistributor::parse(clientId,cmd,outboundRing);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -275,7 +275,6 @@ void WifiNINA::checkForClientOutput() {
|
||||||
//TJF: the old code had to add a 0x00 byte to the end to terminate the
|
//TJF: the old code had to add a 0x00 byte to the end to terminate the
|
||||||
//TJF: c string, before sending it. i take it this is not needed?
|
//TJF: c string, before sending it. i take it this is not needed?
|
||||||
for (int i=0;i<replySize;i++) c->write(outboundRing->read());
|
for (int i=0;i<replySize;i++) c->write(outboundRing->read());
|
||||||
//c->write((byte)0x00);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void WifiNINA::loop() {
|
void WifiNINA::loop() {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user