Skip to content

Commit 5dc0bb5

Browse files
committed
Also update setDynamicModel
1 parent 0e6e0a6 commit 5dc0bb5

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/SparkFun_u-blox_GNSS_Arduino_Library.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8263,8 +8263,7 @@ bool SFE_UBLOX_GNSS::setDynamicModel(dynModel newDynamicModel, uint16_t maxWait)
82638263
if (sendCommand(&packetCfg, maxWait) != SFE_UBLOX_STATUS_DATA_RECEIVED) // We are expecting data and an ACK
82648264
return (false);
82658265

8266-
payloadCfg[0] = 0x01; // mask: set only the dyn bit (0)
8267-
payloadCfg[1] = 0x00; // mask
8266+
payloadCfg[0] |= 0x01; // mask: set only the dyn bit (0)
82688267
payloadCfg[2] = newDynamicModel; // dynModel
82698268

82708269
packetCfg.len = 36;

0 commit comments

Comments
 (0)