1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-18 22:05:17 +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

@ -66,9 +66,11 @@ bool sensorsAutodetect(void)
bool gyroDetected = gyroInit();
#ifdef USE_ACC
if (gyroDetected) {
accInit(gyro.targetLooptime);
}
#endif
#ifdef USE_MAG
compassInit();