1
0
Fork 0
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:
Roman Lut 2024-04-09 13:40:48 +02:00
parent 0d21b3d71d
commit c2c03b99f4

View file

@ -213,7 +213,7 @@ void initActiveBoxIds(void)
ADD_ACTIVE_BOX(BOXFPVANGLEMIX); ADD_ACTIVE_BOX(BOXFPVANGLEMIX);
} }
bool navReadyAltControl = sensors(SENSOR_BARO); bool navReadyAltControl = getHwBarometerStatus() != HW_SENSOR_NONE;
#ifdef USE_GPS #ifdef USE_GPS
navReadyAltControl = navReadyAltControl || (feature(FEATURE_GPS) && (STATE(AIRPLANE) || positionEstimationConfig()->use_gps_no_baro)); navReadyAltControl = navReadyAltControl || (feature(FEATURE_GPS) && (STATE(AIRPLANE) || positionEstimationConfig()->use_gps_no_baro));