Update SPI command debug prints
This commit is contained in:
@@ -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.
|
||||||
|
|||||||
Reference in New Issue
Block a user