summaryrefslogtreecommitdiff
path: root/libraries/TinyGPS/TinyGPS.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'libraries/TinyGPS/TinyGPS.cpp')
-rw-r--r--libraries/TinyGPS/TinyGPS.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/libraries/TinyGPS/TinyGPS.cpp b/libraries/TinyGPS/TinyGPS.cpp
index c45ed19..3ff6635 100644
--- a/libraries/TinyGPS/TinyGPS.cpp
+++ b/libraries/TinyGPS/TinyGPS.cpp
@@ -166,7 +166,7 @@ unsigned long TinyGPS::parse_degrees()
{
char *p;
unsigned long left = gpsatol(_term);
- unsigned long tenk_minutes = (left % 100UL) * 100000UL;
+ unsigned long tenk_minutes = (left % 100UL) * 10000UL;
for (p=_term; gpsisdigit(*p); ++p);
if (*p == '.')
{
@@ -177,7 +177,7 @@ unsigned long TinyGPS::parse_degrees()
mult /= 10;
}
}
- return (left / 100) * 1000000 + tenk_minutes / 6;
+ return (left / 100) * 100000 + tenk_minutes / 6;
}
#define COMBINE(sentence_type, term_number) (((unsigned)(sentence_type) << 5) | term_number)