Skip to content

Commit

Permalink
avoid 64 bit divide (!) exploding binary size (#293)
Browse files Browse the repository at this point in the history
fixing unit tests

Co-authored-by: rusefillc <sdfsdfqsf2334234234>
  • Loading branch information
rusefillc authored Nov 20, 2023
1 parent fa042fb commit f784d5d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions firmware/util/timer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit f784d5d

Please sign in to comment.