mirror of
https://github.com/thooge/esp32-nmea2000-obp60.git
synced 2026-11-17 21:11:27 +01:00
correctly terminate the current logbuffer when partially written
This commit is contained in:
1 parent
e29e8eb591
commit
d63b4d1661
1 file changed
+1
-1
@@ -72,7 +72,7 @@ public:
|
|||||||
if (handled > 0){
|
if (handled > 0){
|
||||||
memmove(logBuffer,logBuffer+handled,wp-handled);
|
memmove(logBuffer,logBuffer+handled,wp-handled);
|
||||||
wp-=handled;
|
wp-=handled;
|
||||||
logBuffer[handled]=0;
|
logBuffer[wp]=0;
|
||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user