summaryrefslogtreecommitdiff
path: root/dvbapi.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2001-07-12 12:29:09 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2001-07-12 12:29:09 +0200
commit9efef9e89e34658101f30a75ee9f3c5b7b08ab99 (patch)
treead088c8596bb44ce70bb055137bd9615131f3800 /dvbapi.c
parent3d2cf4e12aefdd7c6ccd8a9a1de3689bceabfab5 (diff)
downloadvdr-9efef9e89e34658101f30a75ee9f3c5b7b08ab99.tar.gz
vdr-9efef9e89e34658101f30a75ee9f3c5b7b08ab99.tar.bz2
No Diseqc command if parameter is '0'
Diffstat (limited to 'dvbapi.c')
-rw-r--r--dvbapi.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/dvbapi.c b/dvbapi.c
index 45a526b4..6bf21786 100644
--- a/dvbapi.c
+++ b/dvbapi.c
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: dvbapi.c 1.82 2001/06/27 11:34:17 kls Exp $
+ * $Id: dvbapi.c 1.83 2001/07/12 12:23:29 kls Exp $
*/
#include "dvbapi.h"
@@ -2166,7 +2166,7 @@ bool cDvbApi::SetChannel(int ChannelNumber, int FrequencyMHz, char Polarization,
scmds.voltage = volt;
scmds.miniCommand = SEC_MINI_NONE;
scmds.continuousTone = tone;
- scmds.numCommands = 1;
+ scmds.numCommands = Diseqc ? 1 : 0;
scmds.commands = &scmd;
CHECK(ioctl(fd_sec, SEC_SEND_SEQUENCE, &scmds));