Skip to content

Commit 3e89677

Browse files
committed
Fix incorrect block. Remove extraneous prints.
1 parent e663e95 commit 3e89677

File tree

1 file changed

+1
-13
lines changed

1 file changed

+1
-13
lines changed

src/SparkFun_Unicore_GNSS_Arduino_Library.cpp

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1222,12 +1222,8 @@ void UM980::unicoreHandler(uint8_t *response, uint16_t length)
12221222
while (pt != NULL)
12231223
{
12241224
int spotValue = atoi(pt);
1225-
// Serial.printf("counter: %d spot: %s spotvalue: %d\r\n", counter, pt, spotValue);
12261225
if (counter++ == 6)
1227-
{
12281226
nmeaPositionStatus = spotValue;
1229-
debugPrintf("nmeaPositionStatus: %d\r\n", nmeaPositionStatus);
1230-
}
12311227
pt = strtok(NULL, ",");
12321228
}
12331229
}
@@ -1299,13 +1295,6 @@ bool UM980::initBestnav(uint8_t rate)
12991295
debugPrintf("Unicore Lib: BestNav no fix");
13001296
return (false);
13011297
}
1302-
else
1303-
{
1304-
if (startBinaryBeforeFix == true)
1305-
Serial.println("startBinaryBeforeFix is true");
1306-
if (isNmeaFixed() == true)
1307-
Serial.println("isNmeaFixed() is true");
1308-
}
13091298

13101299
packetBESTNAV = new UNICORE_BESTNAV_t; // Allocate RAM for the main struct
13111300
if (packetBESTNAV == nullptr)
@@ -1441,7 +1430,7 @@ bool UM980::initRectime(uint8_t rate)
14411430

14421431
debugPrintf("RecTimeB started");
14431432

1444-
unicoreLibrarySemaphoreBlock = false; // Allow external tasks to control serial hardware
1433+
unicoreLibrarySemaphoreBlock = true; // Allow external tasks to control serial hardware
14451434

14461435
// Wait until first report is available
14471436
lastUpdateDateTime = 0;
@@ -1733,5 +1722,4 @@ void UM980::enableBinaryBeforeFix()
17331722
void UM980::disableBinaryBeforeFix()
17341723
{
17351724
startBinaryBeforeFix = false;
1736-
Serial.println("\r\n Setting sbbf to false\r\n");
17371725
}

0 commit comments

Comments
 (0)