projects
/
project
/
ugps.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
797e09b
)
fix ms->deg conversion
author
John Crispin
<john@phrozen.org>
Thu, 18 Aug 2016 11:18:23 +0000
(13:18 +0200)
committer
John Crispin
<john@phrozen.org>
Thu, 18 Aug 2016 11:18:23 +0000
(13:18 +0200)
Signed-off-by: John Crispin <john@phrozen.org>
nmea.c
patch
|
blob
|
history
diff --git
a/nmea.c
b/nmea.c
index 9c4bde8130c89f6781555543fbe218c6dc176a08..31e016829f1bb4987c551391d0d8d534b910f316 100644
(file)
--- a/
nmea.c
+++ b/
nmea.c
@@
-139,7
+139,7
@@
nmea_rmc_cb(void)
flngs *= 60;
flngs /= 10000;
-#define ms_to_deg(x, y) (((x * 10000) + y) / 60)
+#define ms_to_deg(x, y) (((x * 10000
00
) + y) / 60)
DEBUG(4, "position: %d°%d.%04d, %d°%d.%04d\n",
latd, latm, lats, lngd, lngm, lngs);