mirror of
https://github.com/DCC-EX/CommandStation-EX.git
synced 2025-01-29 21:53:06 +01:00
browser barf on \n
This commit is contained in:
parent
67f836e886
commit
2591d100ca
@ -398,6 +398,8 @@ void WifiESP::loop() {
|
||||
for(int i=0;i<count;i++) {
|
||||
int c = outboundRing->read();
|
||||
if (c >= 0) // Panic check, should never be false
|
||||
// websocket implementations at browser end can barf at \b
|
||||
if (websocket && (cout=='\n')) cout='\r';
|
||||
buffer[i+wsHeaderLen] = (char)c;
|
||||
else {
|
||||
DIAG(F("Ringread fail at %d"),i);
|
||||
|
Loading…
Reference in New Issue
Block a user