Go to file
Ron Barry 1666dae26b
Fix issue with millisecond parsing.
By calling atof() on p, we're converting the entire time string  (101520.123 for 10:15:20am and 123 milliseconds) to a float, then multiplying by 1000 to get ms. This results in a value that overflows and exhibits all sorts of strange behavior as seconds and minutes turn over. It's clearly not what was intended. From the if statement wrapping the conversion, it is clear that the author intended to make the atof() conversion on the dec pointer, instead. Making this change actually does fix the parsing so that Adafruit_GPS' milliseconds property correctly matches the value in the NMEA sentence.

You guys do great work. Thanks for everything!
2020-10-18 01:41:23 -07:00
.github add actions, remove travis 2020-01-17 15:46:18 -05:00
examples get more data 2020-07-19 12:35:42 -04:00
src Fix issue with millisecond parsing. 2020-10-18 01:41:23 -07:00
.gitignore Create .gitignore 2020-01-18 16:41:28 -05:00
README.md Doxyfied; Added code of conduct; Updated README; Added travis.yml 2019-03-12 17:21:45 -04:00
code-of-conduct.md Doxyfied; Added code of conduct; Updated README; Added travis.yml 2019-03-12 17:21:45 -04:00
keywords.txt Create keywords.txt 2020-01-29 09:31:41 -05:00
library.properties Bump to 1.5.2 2020-07-21 09:44:40 -04:00
license.txt woooo! 2012-03-26 12:57:23 -04:00

README.md

Adafruit_GPS Build Status

This is the Adafruit GPS library - the ultimate GPS library for the ultimate GPS module!

Tested and works great with the Adafruit Ultimate GPS module using MTK33x9 chipset ------> http://www.adafruit.com/products/746

These modules use TTL serial to communicate, 2 pins are required to
interface.

Adafruit invests time and resources providing this open source code, please support Adafruit and open-source hardware by purchasing products from Adafruit!

Written by Limor Fried/Ladyada for Adafruit Industries.
BSD license, check license.txt for more information All text above must be included in any redistribution

To install, use the Arduino Library Manager to search for 'Adafruit GPS' and install the library.