Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
linuxdvb rotor: fix the polarization caching
  • Loading branch information
perexg committed Dec 14, 2014
1 parent d4fed88 commit 32540dd
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions src/input/mpegts/linuxdvb/linuxdvb_rotor.c
Expand Up @@ -197,9 +197,6 @@ linuxdvb_rotor_gotox_tune
{
int i;

if (linuxdvb_rotor_check_orbital_pos(lm, ls))
return 0;

for (i = 0; i <= ls->lse_parent->ls_diseqc_repeats; i++) {
if (linuxdvb_diseqc_send(fd, 0xE0, 0x31, 0x6B, 1, (int)lr->lr_position)) {
tvherror("diseqc", "failed to set GOTOX pos %d", lr->lr_position);
Expand Down Expand Up @@ -332,9 +329,6 @@ linuxdvb_rotor_usals_tune
uint32_t tmp, cmd;
int i;

if (linuxdvb_rotor_check_orbital_pos(lm, ls))
return 0;

if (ls->lse_parent->ls_site_lat_south)
site_lat = -site_lat;
if (ls->lse_parent->ls_site_lon_west)
Expand Down Expand Up @@ -383,12 +377,16 @@ linuxdvb_rotor_tune
{
linuxdvb_rotor_t *lr = (linuxdvb_rotor_t*)ld;

if (linuxdvb_rotor_check_orbital_pos(lm, ls))
return 0;

/* Force to 18v (quicker movement) */
if (ioctl(fd, FE_SET_VOLTAGE, SEC_VOLTAGE_18)) {
tvherror("diseqc", "failed to set 18v for rotor movement");
return -1;
}
usleep(15000);
ls->lse_parent->ls_last_pol = 2;

/* GotoX */
if (idnode_is_instance(&lr->ld_id, &linuxdvb_rotor_gotox_class))
Expand Down

0 comments on commit 32540dd

Please sign in to comment.