Skip to content

Commit d46bd50

Browse files
committed
Fixing to support new state management paradigm
1 parent 4f962e1 commit d46bd50

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/Example20_SendCustomCommand/Example20_SendCustomCommand.ino

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ void setup()
6464
// Let's create our custom packet
6565
uint8_t customPayload[MAX_PAYLOAD_SIZE]; // This array holds the payload data bytes
6666
// The next line creates and initialises the packet information which wraps around the payload
67-
ubxPacket customCfg = {0, 0, 0, 0, 0, customPayload, 0, 0, SFE_UBLOX_PACKET_VALIDITY_NOT_DEFINED, SFE_UBLOX_PACKET_VALIDITY_NOT_DEFINED};
67+
ubxPacket customCfg = {0, 0, 0, 0, 0, customPayload, 0, 0, SFE_UBLOX_PACKET_VALIDITY_NOT_DEFINED};
6868

6969
// The structure of ubxPacket is:
7070
// uint8_t cls : The message Class
@@ -126,7 +126,7 @@ void setup()
126126
// when sendCommand read the data
127127

128128
// Now we write the custom packet back again to change the setting
129-
if (myGNSS.sendCommand(&customCfg, maxWait) != SFE_UBLOX_STATUS_DATA_SENT) // This time we are only expecting an ACK
129+
if (myGNSS.sendCommand(&customCfg, maxWait, true) != SFE_UBLOX_STATUS_DATA_SENT) // This time we are only expecting an ACK
130130
{
131131
Serial.println(F("sendCommand (set) failed! Freezing."));
132132
while (1)

0 commit comments

Comments
 (0)