diff --git a/library.properties b/library.properties index 83ffbdc..b3168cf 100644 --- a/library.properties +++ b/library.properties @@ -1,5 +1,5 @@ name=SparkFun u-blox GNSS v3 -version=3.1.6 +version=3.1.7 author=SparkFun Electronics maintainer=SparkFun Electronics sentence=Library for I2C, Serial and SPI Communication with u-blox GNSS modules

diff --git a/src/u-blox_GNSS.cpp b/src/u-blox_GNSS.cpp index 0cc1f7d..5c83c0f 100644 --- a/src/u-blox_GNSS.cpp +++ b/src/u-blox_GNSS.cpp @@ -18477,9 +18477,9 @@ uint32_t DevUBLOXGNSS::getTIMTPAsEpoch(uint32_t µsecond, uint16_t maxWait) uint32_t us = packetUBXTIMTP->data.towMS % 1000; // Extract the milliseconds us *= 1000; // Convert to microseconds - double subMS = packetUBXTIMTP->data.towSubMS; // Get towSubMS (ms * 2^-32) - subMS *= pow(2.0, -32.0); // Convert to milliseconds - subMS *= 1000; // Convert to microseconds + double subMS = packetUBXTIMTP->data.towSubMS; // Get towSubMS (ms * 2^-32) + subMS *= 2.3283064365386963e-10; // pow(2.0, -32.0); // Convert to milliseconds + subMS *= 1000; // Convert to microseconds us += (uint32_t)subMS; // Add subMS