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

Fix code style (#13429)

Fix GPS arming flag when BOXGPSRESCUE is enabled but procedure is not set to GPS_RECUE
This commit is contained in:
Mark Haslinghuis 2024-03-11 14:34:18 +01:00 committed by GitHub
parent 94be8f0673
commit 915caae88d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 3 deletions

View file

@ -177,7 +177,7 @@ void processRcStickPositions(void)
// in a true signal loss situation, allow disarm only once we regain validated RxData (failsafeIsReceivingRxData = true),
// to avoid potentially false disarm signals soon after link recover
// Note that BOXFAILSAFE will also drive failsafeIsReceivingRxData false (immediately at start or end)
// That's why we explicitly allow disarm here BOXFAILSAFE switch is active
// That's why we explicitly allow disarm here if BOXFAILSAFE switch is active
// Note that BOXGPSRESCUE mode does not trigger failsafe - we can always disarm in that mode
rcDisarmTicks++;
if (rcDisarmTicks > 3) {