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

Moved xx_hardware out of sensorSelectionConfig into config for specific sensor

This commit is contained in:
Martin Budden 2016-12-04 22:15:41 +00:00
parent 60e2227396
commit 06e871406e
12 changed files with 31 additions and 42 deletions

View file

@ -422,11 +422,7 @@ void init(void)
#else
const void *sonarConfig = NULL;
#endif
if (!sensorsAutodetect(sensorSelectionConfig(),
gyroConfig(),
accelerometerConfig(),
compassConfig(),
sonarConfig)) {
if (!sensorsAutodetect(gyroConfig(), accelerometerConfig(), compassConfig(), barometerConfig(), sonarConfig)) {
// if gyro was not detected due to whatever reason, we give up now.
failureMode(FAILURE_MISSING_ACC);
}