summaryrefslogtreecommitdiff
path: root/vdr.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2003-08-17 08:58:02 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2003-08-17 08:58:02 +0200
commitb65687ebcfe79f8258bf3ca9ece057f16fae047b (patch)
tree6695894de09bb900f3b424805d47c8dab339c03d /vdr.c
parent3a27bdfeda2a0de7e1c4b3f7f15925e4448e8f72 (diff)
downloadvdr-b65687ebcfe79f8258bf3ca9ece057f16fae047b.tar.gz
vdr-b65687ebcfe79f8258bf3ca9ece057f16fae047b.tar.bz2
Made the "Zap timeout" a setup variable
Diffstat (limited to 'vdr.c')
-rw-r--r--vdr.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/vdr.c b/vdr.c
index e10d9a31..48ed6277 100644
--- a/vdr.c
+++ b/vdr.c
@@ -22,7 +22,7 @@
*
* The project's page is at http://www.cadsoft.de/vdr
*
- * $Id: vdr.c 1.164 2003/08/16 15:21:35 kls Exp $
+ * $Id: vdr.c 1.165 2003/08/17 08:50:25 kls Exp $
*/
#include <getopt.h>
@@ -57,7 +57,6 @@
#define ACTIVITYTIMEOUT 60 // seconds before starting housekeeping
#define SHUTDOWNWAIT 300 // seconds to wait in user prompt before automatic shutdown
#define MANUALSTART 600 // seconds the next timer must be in the future to assume manual start
-#define ZAPTIMEOUT 3 // seconds until a channel counts as "previous" for switching with '0'
static int Interrupted = 0;
@@ -500,7 +499,7 @@ int main(int argc, char *argv[])
LastChannel = cDevice::CurrentChannel();
LastChannelChanged = time(NULL);
}
- if (time(NULL) - LastChannelChanged >= ZAPTIMEOUT && LastChannel != PreviousChannel[0] && LastChannel != PreviousChannel[1])
+ if (time(NULL) - LastChannelChanged >= Setup.ZapTimeout && LastChannel != PreviousChannel[0] && LastChannel != PreviousChannel[1])
PreviousChannel[PreviousChannelIndex ^= 1] = LastChannel;
// Timers and Recordings:
if (!Timers.BeingEdited()) {