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:
parent
af84f9e99d
commit
cc0e689bb5
9 changed files with 31 additions and 2 deletions
|
@ -66,9 +66,11 @@ bool sensorsAutodetect(void)
|
|||
|
||||
bool gyroDetected = gyroInit();
|
||||
|
||||
#ifdef USE_ACC
|
||||
if (gyroDetected) {
|
||||
accInit(gyro.targetLooptime);
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifdef USE_MAG
|
||||
compassInit();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue