Skip to content

Commit e01534b

Browse files
committed
Make addCfgValsetN return false if auto-send fails
1 parent 38805a7 commit e01534b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/u-blox_GNSS.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8737,7 +8737,8 @@ bool DevUBLOXGNSS::addCfgValsetN(uint32_t key, uint8_t *value, uint8_t N)
87378737
if ((_printDebug == true) || (_printLimitedDebug == true)) // This is important. Print this if doing limited debugging
87388738
_debugSerial.println(F("addCfgValsetN: autosend"));
87398739
#endif
8740-
sendCommand(&packetCfg);
8740+
if (sendCommand(&packetCfg) != SFE_UBLOX_STATUS_DATA_SENT) // We are only expecting an ACK
8741+
return false;
87418742
packetCfg.len = 4; // 4 byte header
87428743
packetCfg.startingSpot = 0;
87438744
_numCfgKeys = 0;

0 commit comments

Comments
 (0)