{
.type = PT_U32,
.id = "cmd_time",
- .name = N_("Command time (ms) (10-100)"),
+ .name = N_("Command time (ms) (10-300)"),
.desc = N_("Time (in milliseconds) for a command to complete."),
.off = offsetof(linuxdvb_rotor_t, lr_cmd_time),
.def.u32 = 25
tvherror(LS_DISEQC, "failed to set GOTOX pos %d", lr->lr_position);
return -1;
}
- tvh_safe_usleep(MINMAX(lr->lr_cmd_time, 10, 100) * 1000);
+ tvh_safe_usleep(MINMAX(lr->lr_cmd_time, 10, 300) * 1000);
}
tvhdebug(LS_DISEQC, "rotor GOTOX pos %d sent", lr->lr_position);
tvherror(LS_DISEQC, "failed to send USALS command");
return -1;
}
- tvh_safe_usleep(MINMAX(lr->lr_cmd_time, 10, 100) * 1000);
+ tvh_safe_usleep(MINMAX(lr->lr_cmd_time, 10, 300) * 1000);
}
return linuxdvb_rotor_grace((linuxdvb_diseqc_t*)lr,lm);
int ls_uncommitted;
int ls_uncommitted_first;
uint32_t ls_powerup_time; /* in ms */
- uint32_t ls_sleep_time; /* in ms */
+ uint32_t ls_cmd_time; /* in ms */
} linuxdvb_switch_t;
.off = offsetof(linuxdvb_switch_t, ls_powerup_time),
.def.u32 = 100,
},
+ {
+ .type = PT_U32,
+ .id = "cmd_time",
+ .name = N_("Command time (ms) (10-300)"),
+ .desc = N_("Time (in milliseconds) for a command to complete."),
+ .off = offsetof(linuxdvb_switch_t, ls_cmd_time),
+ .def.u32 = 25
+ },
{
.type = PT_INT,
.id = "committed",
.name = N_("Uncommitted first"),
.off = offsetof(linuxdvb_switch_t, ls_uncommitted_first),
},
- {
- .type = PT_U32,
- .id = "sleeptime",
- .name = N_("Command delay time (ms) (10-200)"),
- .off = offsetof(linuxdvb_switch_t, ls_sleep_time),
- .def.u32 = 25
- },
{}
}
};
return -1;
com = 0xF0 | (ls->ls_committed << 2) | (pol << 1) | band;
- slp = MINMAX(ls->ls_sleep_time, 25, 200) * 1000;
+ slp = MINMAX(ls->ls_cmd_time, 10, 300) * 1000;
/* Repeats */
for (i = 0; i <= lsp->ls_diseqc_repeats; i++) {
}
if (ld->ls_powerup_time == 0)
ld->ls_powerup_time = 100;
- if (ld->ls_sleep_time == 0)
- ld->ls_sleep_time = 25;
+ if (ld->ls_cmd_time == 0)
+ ld->ls_cmd_time = 25;
}
}