packages/net/kismet/patches/100-fix-atan.patch
florian 9796f5f9f6 Update kismet to 2008-05-R1 (#3628)
git-svn-id: svn://svn.openwrt.org/openwrt/packages@11705 3c298f89-4303-0410-b956-a3cf2f4a3e73
2008-07-06 14:12:39 +00:00

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))