]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
linuxdvb rotor: fix orbital position check
authorJaroslav Kysela <perex@perex.cz>
Sun, 14 Dec 2014 23:22:34 +0000 (00:22 +0100)
committerJaroslav Kysela <perex@perex.cz>
Sun, 14 Dec 2014 23:22:34 +0000 (00:22 +0100)
src/input/mpegts/linuxdvb/linuxdvb_rotor.c

index 15f1a6391ca758c3c93c9000409f3a2484f9eedc..19948a613e47a1ef079011541b420cc0a3bfc6f5 100644 (file)
@@ -174,7 +174,7 @@ linuxdvb_rotor_check_orbital_pos
   if (!pos)
     return 0;
 
-  if (abs((int)((lr->lr_sat_lon + 0.05) / 10) - pos) > 2)
+  if (abs((int)((lr->lr_sat_lon + 0.05) * 10) - pos) > 2)
     return 0;
 
   dir = 'E';