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

Add USE_ACC conditionals

This commit is contained in:
jflyper 2018-10-09 00:06:05 +09:00
parent af84f9e99d
commit cc0e689bb5
9 changed files with 31 additions and 2 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))