1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-15 04:15:44 +03:00

Delay allowing sticky modes

On bootup aux channels start out at default and allow sticky modes right away,
although they should only be allowed once they are actually not active.

_Legal disclaimer: I am making my contributions/submissions to this project solely in my personal capacity and am not conveying any rights to any intellectual property of any third parties._
This commit is contained in:
Robert Lacroix 2018-07-15 09:22:34 +02:00
parent 37d66a6005
commit cb792f30d2
5 changed files with 36 additions and 5 deletions

View file

@ -28,6 +28,7 @@
#include "common/bitarray.h"
#include "common/maths.h"
#include "drivers/time.h"
#include "config/feature.h"
#include "pg/pg.h"
@ -112,7 +113,7 @@ void updateActivatedModes(void)
if (paralyzeModeEverDisabled) {
updateMasksForMac(mac, &andMask, &newMask);
} else {
paralyzeModeEverDisabled = !isRangeActive(mac->auxChannelIndex, &mac->range);
paralyzeModeEverDisabled = micros() >= 5e6 && !isRangeActive(mac->auxChannelIndex, &mac->range);
}
}
} else if (mode < CHECKBOX_ITEM_COUNT) {