Skip to content

Commit cdb93d1

Browse files
committed
Change debug printf's to print - ATmega328 does not support printf
1 parent 4fdb585 commit cdb93d1

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/SparkFun_u-blox_GNSS_Arduino_Library.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1605,10 +1605,9 @@ void SFE_UBLOX_GNSS::processUBX(uint8_t incoming, ubxPacket *incomingUBX)
16051605
if ((_printDebug == true) || (_printLimitedDebug == true)) // This is important. Print this if doing limited debugging
16061606
{
16071607
_debugSerial->print(F("processUBX: getMaxPayloadSize returned ZERO!! Class: 0x"));
1608-
_debugSerial->printf("%x", incomingUBX->cls);
1608+
_debugSerial->print(incomingUBX->cls, HEX);
16091609
_debugSerial->print(F(" ID: 0x"));
1610-
_debugSerial->printf("%x\n", incomingUBX->id);
1611-
1610+
_debugSerial->println(incomingUBX->id, HEX);
16121611
}
16131612
}
16141613
//}

0 commit comments

Comments
 (0)