1
0
mirror of https://github.com/DCC-EX/CommandStation-EX.git synced 2025-01-30 14:13:07 +01:00

browser barf on \n

This commit is contained in:
Asbelos 2025-01-15 19:38:41 +00:00
parent 67f836e886
commit 2591d100ca

View File

@ -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);