oops - I broke compass display with my gps changes and didn't notice till

testing with two gps equipped devices.  fixed.
This commit is contained in:
geeksville
2020-03-18 18:34:22 -07:00
parent 53765298e1
commit c8b95f7691
2 changed files with 12 additions and 9 deletions

View File

@@ -146,7 +146,9 @@ void GPS::doTask()
ublox.checkUblox(); // See if new data is available. Process bytes as they come in.
// If we don't have a fix (a quick check), don't try waiting for a solution)
fixtype = ublox.getFixType();
// Hmmm my fix type reading returns zeros for fix, which doesn't seem correct, because it is still sptting out positions
// turn off for now
// fixtype = ublox.getFixType();
DEBUG_MSG("fix type %d\n", fixtype);
}
@@ -154,7 +156,7 @@ void GPS::doTask()
// DEBUG_MSG("lat %d\n", ublox.getLatitude());
// any fix that has time
if ((fixtype >= 2 && fixtype <= 5) && !timeSetFromGPS && ublox.getT()) {
if (!timeSetFromGPS && ublox.getT()) {
struct timeval tv;
/* Convert to unix time