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

Commit b07ca44

Browse files
committed
Example9 now warns if double is not supported
1 parent 3134574 commit b07ca44

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

Diff for: examples/ZED-F9P/Example9_GetHighPrecisionPositionUsingDouble/Example9_GetHighPrecisionPositionUsingDouble.ino

+8-1
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,15 @@ void setup()
5050
;
5151
}
5252

53+
// Check that this platform supports 64-bit (8 byte) double
54+
if (sizeof(double) < 8)
55+
{
56+
Serial.println(F("Warning! Your platform does not support 64-bit double."));
57+
Serial.println(F("The latitude and longitude will be inaccurate."));
58+
}
59+
5360
myGPS.setI2COutput(COM_TYPE_UBX); //Set the I2C port to output UBX only (turn off NMEA noise)
54-
61+
5562
//myGPS.setNavigationFrequency(20); //Set output to 20 times a second
5663

5764
byte rate = myGPS.getNavigationFrequency(); //Get the update rate of this module

0 commit comments

Comments
 (0)