Fixed unit tests.

This commit is contained in:
Michael Keller 2017-06-19 12:36:40 +12:00
parent d93218f21c
commit f380c3d774
3 changed files with 3 additions and 12 deletions

View File

@ -235,11 +235,6 @@ bool sensors(uint32_t mask)
return false;
};
bool feature(uint32_t mask) {
UNUSED(mask);
return false;
}
uint32_t millis(void) { return 0; }
uint32_t micros(void) { return 0; }

View File

@ -26,6 +26,7 @@ extern "C" {
#include "common/maths.h"
#include "common/axis.h"
#include "config/parameter_group.h"
#include "config/parameter_group_ids.h"
#include "blackbox/blackbox.h"
@ -250,7 +251,7 @@ protected:
adjustmentStateMask = 0;
memset(&adjustmentStates, 0, sizeof(adjustmentStates));
PG_RESET_CURRENT(rxConfig);
PG_RESET(rxConfig);
rxConfigMutable()->mincheck = DEFAULT_MIN_CHECK;
rxConfigMutable()->maxcheck = DEFAULT_MAX_CHECK;
rxConfigMutable()->midrc = 1500;
@ -307,7 +308,7 @@ TEST_F(RcControlsAdjustmentsTest, processRcAdjustmentsWithRcRateFunctionSwitchUp
};
// and
PG_RESET_CURRENT(rxConfig);
PG_RESET(rxConfig);
rxConfigMutable()->mincheck = DEFAULT_MIN_CHECK;
rxConfigMutable()->maxcheck = DEFAULT_MAX_CHECK;
rxConfigMutable()->midrc = 1500;

View File

@ -217,10 +217,5 @@ void failsafeOnValidDataFailed(void)
{
}
bool IS_RC_MODE_ACTIVE(boxId_e)
{
return false;
}
}