]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
linuxdvb: satconf - more udelay fixes (rotor/switch)
authorJaroslav Kysela <perex@perex.cz>
Fri, 23 Oct 2015 19:16:44 +0000 (21:16 +0200)
committerJaroslav Kysela <perex@perex.cz>
Fri, 23 Oct 2015 19:16:44 +0000 (21:16 +0200)
src/input/mpegts/linuxdvb/linuxdvb_rotor.c

index a0317264d66512d54296f7e054cc3ee2187a6d4d..d6800050689a60ae9055dc91ea3ba8eb748f3bfa 100644 (file)
@@ -376,7 +376,7 @@ linuxdvb_rotor_gotox_tune
       tvherror("diseqc", "failed to set GOTOX pos %d", lr->lr_position);
       return -1;
     }
-    usleep(MINMAX(lr->lr_cmd_time, 10, 100));
+    usleep(MINMAX(lr->lr_cmd_time, 10, 100) * 1000);
   }
 
   tvhdebug("diseqc", "rotor GOTOX pos %d sent", lr->lr_position);
@@ -412,7 +412,7 @@ linuxdvb_rotor_usals_tune
       tvherror("diseqc", "failed to send USALS command");
       return -1;
     }
-    usleep(MINMAX(lr->lr_cmd_time, 10, 100));
+    usleep(MINMAX(lr->lr_cmd_time, 10, 100) * 1000);
   }
 
   return linuxdvb_rotor_grace((linuxdvb_diseqc_t*)lr,lm);
@@ -430,7 +430,7 @@ linuxdvb_rotor_tune
     return 0;
 
   /* Force to 18v (quicker movement) */
-  if (linuxdvb_satconf_start(lsp, MINMAX(lr->lr_powerup_time, 10, 200) * 1000, 1))
+  if (linuxdvb_satconf_start(lsp, MINMAX(lr->lr_powerup_time, 10, 200), 1))
     return -1;
 
   /* GotoX */