diff options
author | Herbert von Broeuschmeul <Herbert.Broeuschmeul@gmail.com> | 2010-10-26 19:38:32 +0200 |
---|---|---|
committer | Herbert von Broeuschmeul <Herbert.Broeuschmeul@gmail.com> | 2010-10-26 19:38:32 +0200 |
commit | aeab97d163eac31d78d6cc6bd98c20d5f0f80a03 (patch) | |
tree | 86e2ab75c4fd17e73e645bdf0d6ab0c4299ddee7 | |
parent | 8a5334f4bd6fc34e9041b7ed6999315d36121511 (diff) | |
download | BlueGPS-aeab97d163eac31d78d6cc6bd98c20d5f0f80a03.zip BlueGPS-aeab97d163eac31d78d6cc6bd98c20d5f0f80a03.tar.gz BlueGPS-aeab97d163eac31d78d6cc6bd98c20d5f0f80a03.tar.bz2 |
Correct first fix
Actually there is always a first fix with lat=0 and lon=0.
This modification should remove it.
-rw-r--r-- | src/org/broeuschmeul/android/gps/nmea/util/NmeaParser.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/org/broeuschmeul/android/gps/nmea/util/NmeaParser.java b/src/org/broeuschmeul/android/gps/nmea/util/NmeaParser.java index a86f17a..a381ac4 100644 --- a/src/org/broeuschmeul/android/gps/nmea/util/NmeaParser.java +++ b/src/org/broeuschmeul/android/gps/nmea/util/NmeaParser.java @@ -36,7 +36,7 @@ import android.text.TextUtils.SimpleStringSplitter; import android.util.Log;
public class NmeaParser {
- private String fixTime;
+ private String fixTime = null;
private long fixTimestamp;
private boolean hasGGA = false;
@@ -47,7 +47,7 @@ public class NmeaParser { private boolean mockGpsEnabled = false;
private String mockLocationProvider = null;
- private Location fix = new Location(mockLocationProvider);
+ private Location fix = null;
public NmeaParser(){
this(5f);
|