Skip to content

Commit 8f3a6fb

Browse files
committed
Add extra debug print
1 parent c1c857b commit 8f3a6fb

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/u-blox_GNSS.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1157,6 +1157,12 @@ bool DevUBLOXGNSS::checkUbloxI2C(ubxPacket *incomingUBX, uint8_t requestedClass,
11571157
//Something has gone very wrong. Sensor did not respond - or a bus error happened...
11581158
if (_resetCurrentSentenceOnBusError)
11591159
currentSentence = SFE_UBLOX_SENTENCE_TYPE_NONE; //Reset the sentence to being looking for a new start char
1160+
#ifndef SFE_UBLOX_REDUCED_PROG_MEM
1161+
if ((_printDebug == true) || (_printLimitedDebug == true)) // This is important. Print this if doing limited debugging
1162+
{
1163+
_debugSerial.println(F("checkUbloxI2C: bus error? bytesReturned != bytesToRead"));
1164+
}
1165+
#endif
11601166
return (false);
11611167
}
11621168

0 commit comments

Comments
 (0)