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