diff --git a/firmware/lib/logging/Logger.h b/firmware/lib/logging/Logger.h index 68285b0..e0f041a 100644 --- a/firmware/lib/logging/Logger.h +++ b/firmware/lib/logging/Logger.h @@ -33,7 +33,7 @@ public: return false; memcpy(&data_[currentSize_], &time, sizeof(time)); - currentSize_ += time; + currentSize_ += sizeof(time); const auto spaceLeft = totalSize_ - currentSize_; auto charsWritten = snprintf(&data_[currentSize_], spaceLeft, formatStr,