From f784d5d5b91b0d4528596ff69e7f543b37e84ff9 Mon Sep 17 00:00:00 2001 From: rusefillc <48498823+rusefillc@users.noreply.github.com> Date: Mon, 20 Nov 2023 04:48:23 -0500 Subject: [PATCH] avoid 64 bit divide (!) exploding binary size (#293) fixing unit tests Co-authored-by: rusefillc --- firmware/util/timer.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/firmware/util/timer.cpp b/firmware/util/timer.cpp index 77be3d2..d6013e8 100644 --- a/firmware/util/timer.cpp +++ b/firmware/util/timer.cpp @@ -9,6 +9,8 @@ Timer::Timer() { #ifdef MOCK_TIMER +#define CH_CFG_ST_FREQUENCY 1000000 + // in mock land, ticks == microseconds #define TIME_US2I(us) (us) #define TIME_I2US(ticks) (ticks)