Fixed RC modes PG version after GPS rescue.

This commit is contained in:
mikeller 2018-05-21 15:07:36 +12:00
parent 041362614b
commit 557d704b9e
2 changed files with 3 additions and 1 deletions

View File

@ -42,7 +42,7 @@ boxBitmask_t rcModeActivationMask; // one bit per mode defined in boxId_e
static bool modeChangesDisabled = false;
PG_REGISTER_ARRAY(modeActivationCondition_t, MAX_MODE_ACTIVATION_CONDITION_COUNT, modeActivationConditions,
PG_MODE_ACTIVATION_PROFILE, 0);
PG_MODE_ACTIVATION_PROFILE, 1);
bool IS_RC_MODE_ACTIVE(boxId_e boxId)
{

View File

@ -43,6 +43,8 @@ typedef enum {
BOXGPSRESCUE,
BOXID_FLIGHTMODE_LAST = BOXGPSRESCUE,
// When new flight modes are added, the parameter group version for 'modeActivationConditions' in src/main/fc/rc_modes.c has to be incremented to ensure that the RC modes configuration is reset.
// RCMODE flags
BOXANTIGRAVITY,
BOXHEADADJ,