mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-19 06:15:16 +03:00
Fixed unit tests.
This commit is contained in:
parent
d93218f21c
commit
f380c3d774
3 changed files with 3 additions and 12 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue