mirror of
https://github.com/thooge/esp32-nmea2000-obp60.git
synced 2025-12-13 05:53:06 +01:00
correctly terminate the current logbuffer when partially written
This commit is contained in:
@@ -72,7 +72,7 @@ public:
|
||||
if (handled > 0){
|
||||
memmove(logBuffer,logBuffer+handled,wp-handled);
|
||||
wp-=handled;
|
||||
logBuffer[handled]=0;
|
||||
logBuffer[wp]=0;
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user