From 0a1f3678398eeb5ababa549062abed44f2350017 Mon Sep 17 00:00:00 2001 From: Matthew Kennedy Date: Wed, 15 Nov 2023 16:32:21 -0800 Subject: [PATCH] comment didn't get moved for some previous refactor --- firmware/util/timer.cpp | 1 + firmware/util/timer.h | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/firmware/util/timer.cpp b/firmware/util/timer.cpp index 53f2885a3f..3dd8765d4b 100644 --- a/firmware/util/timer.cpp +++ b/firmware/util/timer.cpp @@ -11,6 +11,7 @@ void Timer::reset() { } void Timer::init() { + // Use not-quite-minimum value to avoid overflow m_lastReset = INT64_MIN / 8; } diff --git a/firmware/util/timer.h b/firmware/util/timer.h index 4ea199bae3..d0801ac739 100644 --- a/firmware/util/timer.h +++ b/firmware/util/timer.h @@ -38,6 +38,5 @@ public: float getElapsedSecondsAndReset(efitick_t nowNt); private: - // Use not-quite-minimum value to avoid overflow efitick_t m_lastReset; };