1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-25 01:05:27 +03:00

GPS Rescue disabled warning

This commit is contained in:
Tony Cabello 2019-01-15 06:47:23 +01:00
parent 234186f493
commit ec71965dd8
8 changed files with 62 additions and 28 deletions

View file

@ -460,8 +460,12 @@ void tryArm(void)
GPS_reset_home_position();
//beep to indicate arming
if (featureIsEnabled(FEATURE_GPS) && STATE(GPS_FIX) && gpsSol.numSat >= 5) {
beeper(BEEPER_ARMING_GPS_FIX);
if (featureIsEnabled(FEATURE_GPS)) {
if (STATE(GPS_FIX) && gpsSol.numSat >= 5) {
beeper(BEEPER_ARMING_GPS_FIX);
} else {
beeper(BEEPER_ARMING_GPS_NO_FIX);
}
} else {
beeper(BEEPER_ARMING);
}