1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-24 16:55:36 +03:00

Merge pull request #5973 from mikeller/fix_unittest_stubbing

Fixed stubbing of 'debug.c' in unittests.
This commit is contained in:
Michael Keller 2018-05-27 00:05:59 +12:00 committed by GitHub
commit 42726fd2ae
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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"