@@ -2756,6 +2756,11 @@ sfe_ublox_status_e SFE_UBLOX_GNSS::sendCommand(ubxPacket *outgoingUBX, uint16_t
2756
2756
if (_printDebug == true )
2757
2757
{
2758
2758
_debugSerial->println (F (" sendCommand: Waiting for ACK response" ));
2759
+ _debugSerial->print (F (" expecting cls and id: 0x" ));
2760
+ _debugSerial->print (outgoingUBX->cls , HEX);
2761
+ _debugSerial->print (F (" 0x" ));
2762
+ _debugSerial->println (outgoingUBX->id , HEX);
2763
+
2759
2764
}
2760
2765
retVal = waitForACKResponse (outgoingUBX, outgoingUBX->cls , outgoingUBX->id , maxWait, expectACKonly); // Wait for Ack response
2761
2766
}
@@ -3029,6 +3034,13 @@ sfe_ublox_status_e SFE_UBLOX_GNSS::waitForACKResponse(ubxPacket *outgoingUBX, ui
3029
3034
packetAuto.valid = SFE_UBLOX_PACKET_VALIDITY_NOT_DEFINED;
3030
3035
3031
3036
unsigned long startTime = millis ();
3037
+ if (_printDebug == true )
3038
+ {
3039
+ _debugSerial->print (F (" waitForACKResponse: requested class and id: " ));
3040
+ _debugSerial->print (requestedClass, HEX);
3041
+ _debugSerial->print (F (" " ));
3042
+ _debugSerial->println (requestedID, HEX);
3043
+ }
3032
3044
while (millis () - startTime < maxTime)
3033
3045
{
3034
3046
if (checkUbloxInternal (outgoingUBX, requestedClass, requestedID) == true ) // See if new data is available. Process bytes as they come in.
@@ -3814,7 +3826,7 @@ boolean SFE_UBLOX_GNSS::setPortInput(uint8_t portID, uint8_t inStreamSettings, u
3814
3826
// payloadCfg is now loaded with current bytes. Change only the ones we need to
3815
3827
payloadCfg[12 ] = inStreamSettings; // InProtocolMask LSB - Set inStream bits
3816
3828
3817
- return ((sendCommand (&packetCfg, maxWait)) == SFE_UBLOX_STATUS_DATA_SENT); // We are only expecting an ACK
3829
+ return ((sendCommand (&packetCfg, maxWait, true )) == SFE_UBLOX_STATUS_DATA_SENT); // We are only expecting an ACK
3818
3830
}
3819
3831
3820
3832
// Changes the I2C address that the u-blox module responds to
0 commit comments