Skip to content
This repository was archived by the owner on Jan 28, 2021. It is now read-only.

Commit 67f7919

Browse files
committed
Add debug gates
1 parent 377ef75 commit 67f7919

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/SparkFun_Ublox_Arduino_Library.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -522,6 +522,7 @@ void SFE_UBLOX_GPS::addToChecksum(uint8_t incoming)
522522
//Pretty prints the current ubxPacket
523523
void SFE_UBLOX_GPS::printPacket(ubxPacket *packet)
524524
{
525+
#ifdef DEBUG
525526
debug.print("CLS:");
526527
debug.print(packet->cls, HEX);
527528

@@ -539,6 +540,7 @@ void SFE_UBLOX_GPS::printPacket(ubxPacket *packet)
539540
debug.print(packet->payload[x], HEX);
540541
}
541542
debug.println();
543+
#endif
542544
}
543545

544546

@@ -978,7 +980,7 @@ uint8_t SFE_UBLOX_GPS::getSIV(uint16_t maxWait)
978980
}
979981

980982
//Get the current fix type
981-
983+
//0=no fix, 1=dead reckoning, 2=2D, 3=3D, 4=GNSS, 5=Time fix
982984
uint8_t SFE_UBLOX_GPS::getFixType(uint16_t maxWait)
983985
{
984986
if(moduleQueried.fixType == false) getPVT();

src/SparkFun_Ublox_Arduino_Library.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939

4040
//Uncomment the following line to enable a variety of debug statements
4141
//This will increase the codeword and RAM footprint of the library
42-
#define DEBUG
42+
//#define DEBUG
4343

4444
#ifdef DEBUG
4545
#define debug Serial //Point debug statements to print to Serial port

0 commit comments

Comments
 (0)