Skip to content
This repository was archived by the owner on Jan 28, 2021. It is now read-only.
Prev Previous commit
Next Next commit
Update SparkFun_Ublox_Arduino_Library.cpp
Review comment incorporated.
  • Loading branch information
balamuruganky authored Dec 11, 2020
commit 347dc08186a600b2e8b52001a14c7c1f47fc4806
4 changes: 2 additions & 2 deletions src/SparkFun_Ublox_Arduino_Library.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1027,9 +1027,9 @@ void SFE_UBLOX_GPS::processUBXpacket(ubxPacket *msg)

fixType = extractByte(20 - startingSpot);
gnssFixOk = extractByte(21 - startingSpot) & 0x1; //Get the 1st bit
diffSoln = extractByte(21 - startingSpot) >> 1 & 0x1; //Get the 2nd bit
diffSoln = (extractByte(21 - startingSpot) >> 1) & 0x1; //Get the 2nd bit
carrierSolution = extractByte(21 - startingSpot) >> 6; //Get 6th&7th bits of this byte
headVehValid = extractByte(21 - startingSpot) >> 5 & 0x1; // Get the 5th bit
headVehValid = (extractByte(21 - startingSpot) >> 5) & 0x1; // Get the 5th bit
SIV = extractByte(23 - startingSpot);
longitude = extractSignedLong(24 - startingSpot);
latitude = extractSignedLong(28 - startingSpot);
Expand Down