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:
parent
a8834ad14b
commit
6fe81a9445
5 changed files with 49 additions and 15 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue