1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-23 00:05:33 +03:00

Merge pull request #7529 from jflyper/bfdev-stronger-USE_ACC

[REFACTOR] More application of USE_ACC
This commit is contained in:
Michael Keller 2019-02-06 10:08:49 +13:00 committed by GitHub
commit 7393d5fdac
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
10 changed files with 48 additions and 21 deletions

View file

@ -2066,10 +2066,12 @@ static mspResult_e mspProcessInCommand(uint8_t cmdMSP, sbuf_t *src)
}
break;
#ifdef USE_ACC
case MSP_ACC_CALIBRATION:
if (!ARMING_FLAG(ARMED))
accSetCalibrationCycles(CALIBRATING_ACC_CYCLES);
break;
#endif
case MSP_MAG_CALIBRATION:
if (!ARMING_FLAG(ARMED))