Fix logging pointer overflow check

This commit is contained in:
Oleg Kalachev 2023-03-26 10:50:19 +03:00
parent 24912c13c0
commit c7422d12a2

View File

@ -30,7 +30,7 @@ void logData()
logBuffer[logPointer][10] = thrustTarget;
logPointer++;
if (logPointer >= 2000) {
if (logPointer >= LOG_SIZE) {
logPointer = 0;
}
}