Fixed unit tests.
This commit is contained in:
parent
d93218f21c
commit
f380c3d774
|
@ -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; }
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -217,10 +217,5 @@ void failsafeOnValidDataFailed(void)
|
|||
{
|
||||
}
|
||||
|
||||
bool IS_RC_MODE_ACTIVE(boxId_e)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue