Skip to content
This repository was archived by the owner on Jan 28, 2021. It is now read-only.

Commit 5ecba89

Browse files
committed
Keeping clang happy...
1 parent aac251e commit 5ecba89

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/SparkFun_Ublox_Arduino_Library.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2347,10 +2347,8 @@ uint8_t SFE_UBLOX_GPS::getNavigationFrequency(uint16_t maxWait)
23472347
if (sendCommand(&packetCfg, maxWait) != SFE_UBLOX_STATUS_DATA_RECEIVED) // We are expecting data and an ACK
23482348
return (false); //If command send fails then bail
23492349

2350-
uint16_t measurementRate = 0;
2351-
23522350
//payloadCfg is now loaded with current bytes. Get what we need
2353-
measurementRate = extractInt(0); //Pull from payloadCfg at measRate LSB
2351+
uint16_t measurementRate = extractInt(0); //Pull from payloadCfg at measRate LSB
23542352

23552353
measurementRate = 1000 / measurementRate; //This may return an int when it's a float, but I'd rather not return 4 bytes
23562354
return (measurementRate);

0 commit comments

Comments
 (0)