mirror of
https://github.com/iNavFlight/inav.git
synced 2025-07-23 16:25:26 +03:00
do not remove nav modes in connected by usb
This commit is contained in:
parent
0d21b3d71d
commit
c2c03b99f4
1 changed files with 1 additions and 1 deletions
|
@ -213,7 +213,7 @@ void initActiveBoxIds(void)
|
|||
ADD_ACTIVE_BOX(BOXFPVANGLEMIX);
|
||||
}
|
||||
|
||||
bool navReadyAltControl = sensors(SENSOR_BARO);
|
||||
bool navReadyAltControl = getHwBarometerStatus() != HW_SENSOR_NONE;
|
||||
#ifdef USE_GPS
|
||||
navReadyAltControl = navReadyAltControl || (feature(FEATURE_GPS) && (STATE(AIRPLANE) || positionEstimationConfig()->use_gps_no_baro));
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue