Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
linuxdvb: satconf - more udelay fixes (rotor/switch)
  • Loading branch information
perexg committed Oct 23, 2015
1 parent 061a04d commit 1cbbd31
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/input/mpegts/linuxdvb/linuxdvb_rotor.c
Expand Up @@ -376,7 +376,7 @@ linuxdvb_rotor_gotox_tune
tvherror("diseqc", "failed to set GOTOX pos %d", lr->lr_position);
return -1;
}
usleep(MINMAX(lr->lr_cmd_time, 10, 100));
usleep(MINMAX(lr->lr_cmd_time, 10, 100) * 1000);
}

tvhdebug("diseqc", "rotor GOTOX pos %d sent", lr->lr_position);
Expand Down Expand Up @@ -412,7 +412,7 @@ linuxdvb_rotor_usals_tune
tvherror("diseqc", "failed to send USALS command");
return -1;
}
usleep(MINMAX(lr->lr_cmd_time, 10, 100));
usleep(MINMAX(lr->lr_cmd_time, 10, 100) * 1000);
}

return linuxdvb_rotor_grace((linuxdvb_diseqc_t*)lr,lm);
Expand All @@ -430,7 +430,7 @@ linuxdvb_rotor_tune
return 0;

/* Force to 18v (quicker movement) */
if (linuxdvb_satconf_start(lsp, MINMAX(lr->lr_powerup_time, 10, 200) * 1000, 1))
if (linuxdvb_satconf_start(lsp, MINMAX(lr->lr_powerup_time, 10, 200), 1))
return -1;

/* GotoX */
Expand Down

0 comments on commit 1cbbd31

Please sign in to comment.