1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-25 17:25:20 +03:00

Fixed dispatch initialisation for persistent statistics.

This commit is contained in:
mikeller 2019-06-23 19:56:45 +12:00
parent 9abf63a0b0
commit c6c4c3adf9
4 changed files with 13 additions and 3 deletions

View file

@ -767,7 +767,7 @@ static void processStepwiseAdjustments(controlRateConfig_t *controlRateConfig, c
static void setConfigDirtyIfNotPermanent(const channelRange_t *range)
{
if (range->startStep == MIN_MODE_RANGE_STEP && range->endStep == MAX_MODE_RANGE_STEP) {
if (!(range->startStep == MIN_MODE_RANGE_STEP && range->endStep == MAX_MODE_RANGE_STEP)) {
// Only set the configuration dirty if this range is NOT permanently enabled (and the config thus never used).
setConfigDirty();
}