9796f5f9f6
git-svn-id: svn://svn.openwrt.org/openwrt/packages@11705 3c298f89-4303-0410-b956-a3cf2f4a3e73
12 lines
170 B
Diff
12 lines
170 B
Diff
--- a/gpsd.cc
|
|
+++ b/gpsd.cc
|
|
@@ -478,7 +478,7 @@
|
|
if (ty == 0) {
|
|
dir = 0.0;
|
|
} else {
|
|
- dir = atan(tx / ty);
|
|
+ dir = atan2(tx,ty);
|
|
}
|
|
|
|
if (!finite(dir))
|