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:
parent
60e2227396
commit
06e871406e
12 changed files with 31 additions and 42 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue