]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
Unify power up time range to 10-500 ms
authorPeter Bašista <pbasista@gmail.com>
Tue, 17 Jan 2023 08:39:59 +0000 (09:39 +0100)
committerFlole998 <Flole998@users.noreply.github.com>
Tue, 24 Jan 2023 02:43:52 +0000 (03:43 +0100)
Unify the allowed range of power up time
for rotors, switches and unicable devices.

src/input/mpegts/linuxdvb/linuxdvb_rotor.c
src/input/mpegts/linuxdvb/linuxdvb_switch.c

index 9f58c18cae41d2a71168e4fb8a49ab95c148311e..7288833fc614c1b39bb07f795d100a5d9248c0e0 100644 (file)
@@ -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 */
index e9e61192c6e47ea3fc43ca1cc20bb9961a9cf94a..49ae0e4c4a46ba3da0f4e0b6625faf4bdb12f2b5 100644 (file)
@@ -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;