Fixed stubbing of 'debug.c' in unittests.

This commit is contained in:
mikeller 2018-05-26 15:09:24 +12:00
parent 98fb4d7c66
commit bf0a9c5c4f
2 changed files with 3 additions and 1 deletions

View File

@ -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 \

View File

@ -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"