Skip to content

Commit

Permalink
AP_GPS: Don't run GPS re-detection logic if _ublox_no_fix is enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
wsilva32 committed Oct 18, 2016
1 parent 29231d8 commit 6752eca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libraries/AP_GPS/AP_GPS.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,7 @@ AP_GPS::update_instance(uint8_t instance)
// has expired, re-initialise the GPS. This will cause GPS
// detection to run again
if (!result) {
if (tnow - timing[instance].last_message_time_ms > 1200) {
if (tnow - timing[instance].last_message_time_ms > 1200 && !_ublox_no_fix) {
// free the driver before we run the next detection, so we
// don't end up with two allocated at any time
delete drivers[instance];
Expand Down

0 comments on commit 6752eca

Please sign in to comment.