diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2003-08-17 08:58:02 +0200 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2003-08-17 08:58:02 +0200 |
commit | b65687ebcfe79f8258bf3ca9ece057f16fae047b (patch) | |
tree | 6695894de09bb900f3b424805d47c8dab339c03d /vdr.c | |
parent | 3a27bdfeda2a0de7e1c4b3f7f15925e4448e8f72 (diff) | |
download | vdr-b65687ebcfe79f8258bf3ca9ece057f16fae047b.tar.gz vdr-b65687ebcfe79f8258bf3ca9ece057f16fae047b.tar.bz2 |
Made the "Zap timeout" a setup variable
Diffstat (limited to 'vdr.c')
-rw-r--r-- | vdr.c | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -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()) { |