mirror of
https://github.com/DCC-EX/CommandStation-EX.git
synced 2025-01-30 22:23:07 +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++) {
|
for(int i=0;i<count;i++) {
|
||||||
int c = outboundRing->read();
|
int c = outboundRing->read();
|
||||||
if (c >= 0) // Panic check, should never be false
|
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;
|
buffer[i+wsHeaderLen] = (char)c;
|
||||||
else {
|
else {
|
||||||
DIAG(F("Ringread fail at %d"),i);
|
DIAG(F("Ringread fail at %d"),i);
|
||||||
|
Loading…
Reference in New Issue
Block a user