AP_GPS: Fix a memory leak in QURT GPS

Fixes part of #6000
This commit is contained in:
Michael du Breuil 2017-04-07 16:38:58 -07:00 committed by Andrew Tridgell
parent 664e41cec6
commit 6b523cbd46

View File

@ -72,10 +72,8 @@ AP_GPS_QURT::read(void)
state.status = AP_GPS::GPS_OK_FIX_3D;
} else if (data.nav_type & NAV_TYPE_2SV_KF_SOLUTION) {
state.status = AP_GPS::GPS_OK_FIX_2D;
} else if (data.nav_type & NAV_TYPE_1SV_KF_SOLUTION) {
state.status = AP_GPS::NO_FIX;
} else {
state.status = AP_GPS::NO_GPS;
state.status = AP_GPS::NO_FIX;
}
state.num_sats = data.sv_in_fix;