From bc7e414e53d63f9ea23326fa260c874f1b7e3245 Mon Sep 17 00:00:00 2001 From: Martin Bauer Date: Thu, 6 Jul 2023 07:26:39 +0000 Subject: [PATCH] Bugfix in Logger.h --- firmware/lib/logging/Logger.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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,