Update SPI command debug prints

This commit is contained in:
PaulZC
2021-06-28 11:31:20 +01:00
parent 2c35e729e7
commit 1ce0be8946
+2 -3
View File
@@ -2900,7 +2900,7 @@ void SFE_UBLOX_GNSS::sendSpiCommand(ubxPacket *outgoingUBX)
{ {
if ((_printDebug == true) || (_printLimitedDebug == true)) // This is important. Print this if doing limited debugging if ((_printDebug == true) || (_printLimitedDebug == true)) // This is important. Print this if doing limited debugging
{ {
_debugSerial->print(F("sendSpiCommand: memory allocation failed for SPI Buffer!")); _debugSerial->print(F("sendSpiCommand: no memory allocation for SPI Buffer!"));
} }
return; return;
} }
@@ -2922,7 +2922,7 @@ void SFE_UBLOX_GNSS::sendSpiCommand(ubxPacket *outgoingUBX)
if (_printDebug) if (_printDebug)
{ {
_debugSerial->print(F("sendSpiCommand: 0x")); _debugSerial->print(F("sendSpiCommand: "));
_debugSerial->print(UBX_SYNCH_1, HEX); _debugSerial->print(UBX_SYNCH_1, HEX);
_debugSerial->print(F(" ")); _debugSerial->print(F(" "));
_debugSerial->print(UBX_SYNCH_2, HEX); _debugSerial->print(UBX_SYNCH_2, HEX);
@@ -2934,7 +2934,6 @@ void SFE_UBLOX_GNSS::sendSpiCommand(ubxPacket *outgoingUBX)
_debugSerial->print(outgoingUBX->len & 0xFF, HEX); _debugSerial->print(outgoingUBX->len & 0xFF, HEX);
_debugSerial->print(F(" ")); _debugSerial->print(F(" "));
_debugSerial->print(outgoingUBX->len >> 8, HEX); _debugSerial->print(outgoingUBX->len >> 8, HEX);
_debugSerial->print(F(" "));
} }
//Write payload. //Write payload.