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

Commit 347dc08

Browse files
Update SparkFun_Ublox_Arduino_Library.cpp
Review comment incorporated.
1 parent 378007a commit 347dc08

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: src/SparkFun_Ublox_Arduino_Library.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -1027,9 +1027,9 @@ void SFE_UBLOX_GPS::processUBXpacket(ubxPacket *msg)
10271027

10281028
fixType = extractByte(20 - startingSpot);
10291029
gnssFixOk = extractByte(21 - startingSpot) & 0x1; //Get the 1st bit
1030-
diffSoln = extractByte(21 - startingSpot) >> 1 & 0x1; //Get the 2nd bit
1030+
diffSoln = (extractByte(21 - startingSpot) >> 1) & 0x1; //Get the 2nd bit
10311031
carrierSolution = extractByte(21 - startingSpot) >> 6; //Get 6th&7th bits of this byte
1032-
headVehValid = extractByte(21 - startingSpot) >> 5 & 0x1; // Get the 5th bit
1032+
headVehValid = (extractByte(21 - startingSpot) >> 5) & 0x1; // Get the 5th bit
10331033
SIV = extractByte(23 - startingSpot);
10341034
longitude = extractSignedLong(24 - startingSpot);
10351035
latitude = extractSignedLong(28 - startingSpot);

0 commit comments

Comments
 (0)