]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
linuxdvb satconf: tone fix..., fixes #2547
authorJaroslav Kysela <perex@perex.cz>
Mon, 15 Dec 2014 18:58:34 +0000 (19:58 +0100)
committerJaroslav Kysela <perex@perex.cz>
Mon, 15 Dec 2014 18:58:34 +0000 (19:58 +0100)
src/input/mpegts/linuxdvb/linuxdvb_satconf.c

index b32adeb86f6225bfdb6d1c19549aef7438163d4c..6224ba16f06ee03fe5052c6309c60bbaab304cb3 100644 (file)
@@ -779,13 +779,12 @@ linuxdvb_satconf_ele_tune ( linuxdvb_satconf_ele_t *lse )
     if (ls->ls_diseqc_full || ls->ls_last_tone_off != b + 1) {
       ls->ls_last_tone_off = 0;
       tvhtrace("diseqc", "set diseqc tone %s", b ? "on" : "off");
-      if (b && ioctl(lfe->lfe_fe_fd, FE_SET_TONE, b ? SEC_TONE_ON : SEC_TONE_OFF)) {
+      if (ioctl(lfe->lfe_fe_fd, FE_SET_TONE, b ? SEC_TONE_ON : SEC_TONE_OFF)) {
         tvherror("diseqc", "failed to set diseqc tone (e=%s)", strerror(errno));
         return -1;
       }
       ls->ls_last_tone_off = b + 1;
-      if (b)
-        usleep(20000); // Allow LNB to settle before tuning
+      usleep(20000); // Allow LNB to settle before tuning
     }
   }