From: Peter BaĊĦista Date: Tue, 17 Jan 2023 08:39:59 +0000 (+0100) Subject: Unify power up time range to 10-500 ms X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1620218ed01600bbc1784528a10f0723a998a741;p=thirdparty%2Ftvheadend.git Unify power up time range to 10-500 ms Unify the allowed range of power up time for rotors, switches and unicable devices. --- diff --git a/src/input/mpegts/linuxdvb/linuxdvb_rotor.c b/src/input/mpegts/linuxdvb/linuxdvb_rotor.c index 9f58c18ca..7288833fc 100644 --- a/src/input/mpegts/linuxdvb/linuxdvb_rotor.c +++ b/src/input/mpegts/linuxdvb/linuxdvb_rotor.c @@ -99,7 +99,7 @@ const idclass_t linuxdvb_rotor_class = { { .type = PT_U32, .id = "powerup_time", - .name = N_("Power-up time (ms) (15-200)"), + .name = N_("Power up time (ms) (10-500)"), .desc = N_("Time (in milliseconds) for the rotor to power up."), .off = offsetof(linuxdvb_rotor_t, lr_powerup_time), .def.u32 = 100, @@ -525,7 +525,7 @@ linuxdvb_rotor_tune return 0; /* Force to 18v (quicker movement) */ - if (linuxdvb_satconf_start(lsp, MINMAX(lr->lr_powerup_time, 15, 200), 1)) + if (linuxdvb_satconf_start(lsp, MINMAX(lr->lr_powerup_time, 10, 500), 1)) return -1; /* GotoX */ diff --git a/src/input/mpegts/linuxdvb/linuxdvb_switch.c b/src/input/mpegts/linuxdvb/linuxdvb_switch.c index e9e61192c..49ae0e4c4 100644 --- a/src/input/mpegts/linuxdvb/linuxdvb_switch.c +++ b/src/input/mpegts/linuxdvb/linuxdvb_switch.c @@ -118,6 +118,14 @@ const idclass_t linuxdvb_switch_class = .ic_doc = tvh_doc_linuxdvb_satconf_class, .ic_get_title = linuxdvb_switch_class_get_title, .ic_properties = (const property_t[]) { + { + .type = PT_U32, + .id = "powerup_time", + .name = N_("Power up time (ms) (10-500)"), + .desc = N_("Time (in milliseconds) for the switch to power up."), + .off = offsetof(linuxdvb_switch_t, ls_powerup_time), + .def.u32 = 100, + }, { .type = PT_INT, .id = "committed", @@ -145,13 +153,6 @@ const idclass_t linuxdvb_switch_class = .name = N_("Uncommitted first"), .off = offsetof(linuxdvb_switch_t, ls_uncommitted_first), }, - { - .type = PT_U32, - .id = "poweruptime", - .name = N_("Power-up time (ms) (15-200)"), - .off = offsetof(linuxdvb_switch_t, ls_powerup_time), - .def.u32 = 100, - }, { .type = PT_U32, .id = "sleeptime", @@ -183,7 +184,7 @@ linuxdvb_switch_tune lsp->ls_last_switch = NULL; - if (linuxdvb_satconf_start(lsp, MINMAX(ls->ls_powerup_time, 15, 200), pol)) + if (linuxdvb_satconf_start(lsp, MINMAX(ls->ls_powerup_time, 10, 500), pol)) return -1; com = 0xF0 | (ls->ls_committed << 2) | (pol << 1) | band; @@ -234,7 +235,7 @@ linuxdvb_switch_tune if (ls->ls_toneburst >= 0 && (lsp->ls_diseqc_full || lsp->ls_last_toneburst != ls->ls_toneburst + 1)) { - if (linuxdvb_satconf_start(lsp, MINMAX(ls->ls_powerup_time, 15, 200), vol)) + if (linuxdvb_satconf_start(lsp, MINMAX(ls->ls_powerup_time, 10, 500), vol)) return -1; lsp->ls_last_toneburst = 0;