1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-17 21:35:44 +03:00

Fix disabling sensor configuration (when device needs battery power) (#13177)

* Fix sensor config

* Encapsulate code

* Add new message for detectedSensors

* Add SENSOR_NOT_AVAILABLE

* Move comment

* Add gyro
This commit is contained in:
Mark Haslinghuis 2023-11-28 10:42:31 +01:00 committed by GitHub
parent a8834ad14b
commit 6fe81a9445
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 49 additions and 15 deletions

View file

@ -77,14 +77,14 @@ bool sensorsAutodetect(void)
}
#endif
#ifdef USE_MAG
compassInit();
#endif
#ifdef USE_BARO
baroInit();
#endif
#ifdef USE_MAG
compassInit();
#endif
#ifdef USE_RANGEFINDER
rangefinderInit();
#endif