mirror of
https://github.com/DCC-EX/CommandStation-EX.git
synced 2025-07-28 09:53:45 +02:00
Interrupt time ACK manager
This commit is contained in:
@@ -107,7 +107,6 @@ void WifiInterface::loop(Stream & wifiStream) {
|
||||
switch (loopstate) {
|
||||
case 0: // looking for +
|
||||
connectionId=0;
|
||||
streamer.flush();
|
||||
if (ch=='+') loopstate=1;
|
||||
break;
|
||||
case 1: // Looking for I
|
||||
@@ -129,6 +128,7 @@ void WifiInterface::loop(Stream & wifiStream) {
|
||||
case 6: // reading for length
|
||||
if (ch==':') loopstate=(datalength==0)?99:7; // 99 is getout without reading next char
|
||||
else datalength=datalength*10 + (ch-'0');
|
||||
streamer.flush();
|
||||
break;
|
||||
case 7: // reading data
|
||||
streamer.write(ch);
|
||||
|
Reference in New Issue
Block a user