diff --git a/src/modules/ekf2/ekf2_main.cpp b/src/modules/ekf2/ekf2_main.cpp index 924bf7fd57..3d95dd3c63 100644 --- a/src/modules/ekf2/ekf2_main.cpp +++ b/src/modules/ekf2/ekf2_main.cpp @@ -1004,7 +1004,7 @@ void Ekf2::run() } else { // handle case where the blended states cannot be updated - if (_gps_state[0].fix_type > _gps_state[0].fix_type) { + if (_gps_state[0].fix_type > _gps_state[1].fix_type) { // GPS 1 has the best fix status so use that _gps_select_index = 0;