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