1
0
Fork 0
mirror of https://github.com/iNavFlight/inav.git synced 2025-07-25 01:05:21 +03:00

Renamed useRcControlsConfig to updateUsedModeActivationConditionFlags

This commit is contained in:
Martin Budden 2017-02-08 08:17:02 +00:00
parent 85e78ffb5b
commit ec61801c23
4 changed files with 4 additions and 4 deletions

View file

@ -431,7 +431,7 @@ static void activateConfig(void)
resetAdjustmentStates(); resetAdjustmentStates();
useRcControlsConfig(); updateUsedModeActivationConditionFlags();
failsafeReset(); failsafeReset();

View file

@ -1364,7 +1364,7 @@ static mspResult_e mspFcProcessInCommand(uint8_t cmdMSP, sbuf_t *src)
mac->range.startStep = sbufReadU8(src); mac->range.startStep = sbufReadU8(src);
mac->range.endStep = sbufReadU8(src); mac->range.endStep = sbufReadU8(src);
useRcControlsConfig(); updateUsedModeActivationConditionFlags();
} else { } else {
return MSP_RESULT_ERROR; return MSP_RESULT_ERROR;
} }

View file

@ -362,7 +362,7 @@ int32_t getRcStickDeflection(int32_t axis, uint16_t midrc) {
return MIN(ABS(rcData[axis] - midrc), 500); return MIN(ABS(rcData[axis] - midrc), 500);
} }
void useRcControlsConfig(void) void updateUsedModeActivationConditionFlags(void)
{ {
isUsingSticksToArm = !isModeActivationConditionPresent(BOXARM); isUsingSticksToArm = !isModeActivationConditionPresent(BOXARM);

View file

@ -171,4 +171,4 @@ bool isUsingNavigationModes(void);
int32_t getRcStickDeflection(int32_t axis, uint16_t midrc); int32_t getRcStickDeflection(int32_t axis, uint16_t midrc);
bool isModeActivationConditionPresent(boxId_e modeId); bool isModeActivationConditionPresent(boxId_e modeId);
void useRcControlsConfig(void); void updateUsedModeActivationConditionFlags(void);