Skip to content

Commit

Permalink
Fix tuning with Unicable LNBs
Browse files Browse the repository at this point in the history
Fixes #1158, regression from 083c647
  • Loading branch information
Jalle19 committed Jul 7, 2024
1 parent ed1ecbc commit 2f01e98
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/dvb.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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 ||
Expand Down

0 comments on commit 2f01e98

Please sign in to comment.