From 7e12e9da18ff01f9e17e4644d0b2a31fff43645f Mon Sep 17 00:00:00 2001 From: Thorsten Laux Date: Mon, 28 May 2018 16:03:49 +0200 Subject: [PATCH] don't link debug.c to pid unit test --- src/test/Makefile | 1 - src/test/unit/pid_unittest.cc | 5 ++++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/test/Makefile b/src/test/Makefile index 346a08747a..f7f89443b0 100644 --- a/src/test/Makefile +++ b/src/test/Makefile @@ -298,7 +298,6 @@ pid_unittest_SRC := \ $(USER_DIR)/drivers/accgyro/gyro_sync.c \ $(USER_DIR)/flight/pid.c \ $(USER_DIR)/pg/pg.c \ - $(USER_DIR)/build/debug.c \ $(USER_DIR)/fc/runtime_config.c rcdevice_unittest_DEFINES := \ diff --git a/src/test/unit/pid_unittest.cc b/src/test/unit/pid_unittest.cc index a526c39c7d..46dc7cede3 100644 --- a/src/test/unit/pid_unittest.cc +++ b/src/test/unit/pid_unittest.cc @@ -22,7 +22,7 @@ #include "unittest_macros.h" #include "gtest/gtest.h" - +#include "build/debug.h" bool simulateMixerSaturated = false; float simulatedSetpointRate[3] = { 0,0,0 }; @@ -30,6 +30,9 @@ float simulatedRcDeflection[3] = { 0,0,0 }; float simulatedThrottlePIDAttenuation = 1.0f; float simulatedMotorMixRange = 0.0f; +int16_t debug[DEBUG16_VALUE_COUNT]; +uint8_t debugMode; + extern "C" { #include "build/debug.h" #include "common/axis.h"