Skip to content

Commit

Permalink
imu: use FAKE_IMU when no real IMU defined
Browse files Browse the repository at this point in the history
Signed-off-by: Thomas Chou <[email protected]>
  • Loading branch information
hippo5329 committed Mar 6, 2024
1 parent f223fec commit 96c3495
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion firmware/lib/imu/imu.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@
#define IMU MPU9250IMU
#endif

#ifdef USE_FAKE_IMU
#ifndef IMU
#define USE_FAKE_IMU
#define IMU FakeIMU
#endif

Expand Down

0 comments on commit 96c3495

Please sign in to comment.