From eeeb660033ec47fe9517a0f73bbaa76f5329848b Mon Sep 17 00:00:00 2001 From: Sam Stenvall Date: Sun, 7 Jul 2024 10:27:58 +0300 Subject: [PATCH] Fix tuning with Unicable LNBs Fixes #1158, regression from 083c6475d9f110c7031507a6ff75b591ce0b809c --- src/dvb.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/dvb.c b/src/dvb.c index 33b70dbcbe..4c58e58757 100644 --- a/src/dvb.c +++ b/src/dvb.c @@ -1030,6 +1030,9 @@ int setup_switch(adapter *ad) { frontend_fd = master->fe; + freq = get_lnb_int_freq(tp, &tp->diseqc_param); + hiband = get_lnb_hiband(tp, &tp->diseqc_param); + // Send the appropriate commands to setup the LNB/switch if (tp->diseqc_param.switch_type == SWITCH_UNICABLE) { freq = send_unicable(ad, frontend_fd, freq / 1000, diseqc, pol, hiband, @@ -1040,9 +1043,6 @@ int setup_switch(adapter *ad) { &tp->diseqc_param); hiband = pol = 0; // do not care about polarity and hiband on Unicable } else { - freq = get_lnb_int_freq(tp, &tp->diseqc_param); - hiband = get_lnb_hiband(tp, &tp->diseqc_param); - int do_setup_switch = 0; int change_par = 0; if (ad->old_pol != pol || ad->old_hiband != hiband ||