From 30a431788d699c2dd0abecec07ee0298a15b2b98 Mon Sep 17 00:00:00 2001 From: geeksville Date: Sun, 15 Mar 2020 16:50:24 -0700 Subject: [PATCH] we now do bidirectional comms to GPS at startup, so we can always trust isConnected --- src/GPS.cpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/GPS.cpp b/src/GPS.cpp index dd5ef82ce..ce28f3d03 100644 --- a/src/GPS.cpp +++ b/src/GPS.cpp @@ -163,8 +163,6 @@ void GPS::doTask() { struct timeval tv; - isConnected = true; // We just received a packet, so we must have a GPS - /* Convert to unix time The Unix epoch (or Unix time or POSIX time or Unix timestamp) is the number of seconds that have elapsed since January 1, 1970 (midnight UTC/GMT), not counting leap seconds (in ISO 8601: 1970-01-01T00:00:00Z). */ @@ -188,8 +186,6 @@ void GPS::doTask() if ((fixtype >= 3 && fixtype <= 4) && ublox.getP()) // rd fixes only { // we only notify if position has changed - isConnected = true; // We just received a packet, so we must have a GPS - latitude = ublox.getLatitude() * 1e-7; longitude = ublox.getLongitude() * 1e-7; altitude = ublox.getAltitude() / 1000; // in mm convert to meters