Skip to content

Commit e663e95

Browse files
committed
Fix position status at 1
1 parent 992fe16 commit e663e95

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

src/SparkFun_Unicore_GNSS_Arduino_Library.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1714,10 +1714,10 @@ char *UM980::getVersionFull(uint16_t maxWaitMs)
17141714
return ((char *)"Error2");
17151715
}
17161716

1717-
// Returns true when GNGGA NMEA reports position status >= 2
1717+
// Returns true when GNGGA NMEA reports position status >= 1
17181718
bool UM980::isNmeaFixed()
17191719
{
1720-
if (nmeaPositionStatus >= 2)
1720+
if (nmeaPositionStatus >= 1)
17211721
return (true);
17221722
return (false);
17231723
}
@@ -1733,4 +1733,5 @@ void UM980::enableBinaryBeforeFix()
17331733
void UM980::disableBinaryBeforeFix()
17341734
{
17351735
startBinaryBeforeFix = false;
1736+
Serial.println("\r\n Setting sbbf to false\r\n");
17361737
}

src/SparkFun_Unicore_GNSS_Arduino_Library.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ class UM980
137137
unsigned long lastUpdateDateTime = 0;
138138
unsigned long lastUpdateVersion = 0;
139139

140-
bool isNmeaFixed(); // Returns true when GNGGA NMEA reports position status >= 2
140+
bool isNmeaFixed(); // Returns true when GNGGA NMEA reports position status >= 1
141141

142142
void stopAutoReports(); // Delete all pointers to force reinit next time a helper function is called
143143

0 commit comments

Comments
 (0)