]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
linuxdvb satconf: another tone fix
authorJaroslav Kysela <perex@perex.cz>
Sun, 14 Dec 2014 17:33:28 +0000 (18:33 +0100)
committerJaroslav Kysela <perex@perex.cz>
Sun, 14 Dec 2014 17:33:28 +0000 (18:33 +0100)
src/input/mpegts/linuxdvb/linuxdvb_satconf.c

index 971482f9be79533f6de4968d8438ea37a99742f9..8da870284e208fcffc0c6559351e7405ee751d1a 100644 (file)
@@ -751,10 +751,9 @@ linuxdvb_satconf_ele_tune ( linuxdvb_satconf_ele_t *lse )
       tvherror("diseqc", "failed to set diseqc tone (e=%s)", strerror(errno));
       return -1;
     }
-    if (b) {
-      ls->ls_last_tone_off = 2;
+    ls->ls_last_tone_off = b + 1;
+    if (b)
       usleep(20000); // Allow LNB to settle before tuning
-    }
   }
 
   /* Frontend */