diff --git a/src/test/Makefile b/src/test/Makefile index 346811727b..17b4828b17 100644 --- a/src/test/Makefile +++ b/src/test/Makefile @@ -210,7 +210,6 @@ scheduler_unittest_SRC := \ sensor_gyro_unittest_SRC := \ $(USER_DIR)/sensors/gyro.c \ $(USER_DIR)/sensors/boardalignment.c \ - $(USER_DIR)/build/debug.c \ $(USER_DIR)/common/filter.c \ $(USER_DIR)/common/maths.c \ $(USER_DIR)/drivers/accgyro/accgyro_fake.c \ diff --git a/src/test/unit/sensor_gyro_unittest.cc b/src/test/unit/sensor_gyro_unittest.cc index 86e6e5ac2b..ff422b7eec 100644 --- a/src/test/unit/sensor_gyro_unittest.cc +++ b/src/test/unit/sensor_gyro_unittest.cc @@ -44,6 +44,9 @@ extern "C" { struct gyroSensor_s; STATIC_UNIT_TESTED void performGyroCalibration(struct gyroSensor_s *gyroSensor, uint8_t gyroMovementCalibrationThreshold); STATIC_UNIT_TESTED bool fakeGyroRead(gyroDev_t *gyro); + + uint8_t debugMode; + int16_t debug[DEBUG16_VALUE_COUNT]; } #include "unittest_macros.h"