Commit ba07b415 authored by Zoran Turalija's avatar Zoran Turalija Committed by Rémi Denis-Courmont

dtv: More detailed DiSEqC error messages.

Error messages were reused from time when there was no uncommitted
switch support. Now we have support for this feature, and we can
supply better error messages, because we know in more details what
has happened at times when error occured.
Signed-off-by: default avatarRémi Denis-Courmont <remi@remlab.net>
parent b412ee7b
...@@ -810,21 +810,22 @@ known: ...@@ -810,21 +810,22 @@ known:
uncmd.msg_len = 4; /* length */ uncmd.msg_len = 4; /* length */
if (ioctl (d->frontend, FE_DISEQC_SEND_MASTER_CMD, &uncmd) < 0) if (ioctl (d->frontend, FE_DISEQC_SEND_MASTER_CMD, &uncmd) < 0)
{ {
msg_Err (d->obj, "cannot send DiSEqC command: %m"); msg_Err (d->obj, "cannot send uncommitted DiSEqC command: %m");
return -1; return -1;
} }
/* Repeat uncommitted command */ /* Repeat uncommitted command */
uncmd.msg[0] = 0xE1; /* framing: master, no reply, repeated TX */ uncmd.msg[0] = 0xE1; /* framing: master, no reply, repeated TX */
if (ioctl (d->frontend, FE_DISEQC_SEND_MASTER_CMD, &uncmd) < 0) if (ioctl (d->frontend, FE_DISEQC_SEND_MASTER_CMD, &uncmd) < 0)
{ {
msg_Err (d->obj, "cannot send DiSEqC command: %m"); msg_Err (d->obj,
"cannot send repeated uncommitted DiSEqC command: %m");
return -1; return -1;
} }
msleep(125000); /* wait 125 ms before committed DiSEqC command */ msleep(125000); /* wait 125 ms before committed DiSEqC command */
} }
if (ioctl (d->frontend, FE_DISEQC_SEND_MASTER_CMD, &cmd) < 0) if (ioctl (d->frontend, FE_DISEQC_SEND_MASTER_CMD, &cmd) < 0)
{ {
msg_Err (d->obj, "cannot send DiSEqC command: %m"); msg_Err (d->obj, "cannot send committed DiSEqC command: %m");
return -1; return -1;
} }
msleep (54000 + 15000); msleep (54000 + 15000);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment