1
0
mirror of https://github.com/thooge/esp32-nmea2000-obp60.git synced 2025-12-13 05:53:06 +01:00

intermediate: debug via websocket

This commit is contained in:
wellenvogel
2021-11-27 10:25:18 +01:00
parent 3a12fe16cd
commit 5bf2aeaffe
3 changed files with 8 additions and 0 deletions

View File

@@ -198,6 +198,7 @@ class GwSerialLog : public GwLogWriter{
logBuffer[wp]=0;
}
virtual void flush(){
webserver.sendDebugLine(logBuffer);
size_t handled=0;
while (handled < wp){
usbSerial->flush();