summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2001-07-27 10:18:57 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2001-07-27 10:18:57 +0200
commit8c28b9f74a51731ccb7029f9d7e11cf87aeb5c71 (patch)
treef1a0e5d642141f0429e4fdb9ab7e2d94fc0cf241
parent7107140cbe31ac87a98035da229af58a57d994b4 (diff)
downloadvdr-8c28b9f74a51731ccb7029f9d7e11cf87aeb5c71.tar.gz
vdr-8c28b9f74a51731ccb7029f9d7e11cf87aeb5c71.tar.bz2
Fixed repeat function with LIRC
-rw-r--r--CONTRIBUTORS3
-rw-r--r--HISTORY1
-rw-r--r--remote.c10
3 files changed, 10 insertions, 4 deletions
diff --git a/CONTRIBUTORS b/CONTRIBUTORS
index a37e1280..4d857231 100644
--- a/CONTRIBUTORS
+++ b/CONTRIBUTORS
@@ -94,3 +94,6 @@ Andre Valentin <av2000@topmail.de>
Jørgen Tvedt <pjtvedt@online.no>
for translating the OSD texts to the Norwegian language
+
+Stefan Huelswitt <huels@iname.com>
+ for fixing the repeat function with LIRC
diff --git a/HISTORY b/HISTORY
index 5b30de29..f055c28b 100644
--- a/HISTORY
+++ b/HISTORY
@@ -577,3 +577,4 @@ Video Disk Recorder Revision History
systems with the KURT/utime-patch (thanks to Guido Fiala).
- Changed the check whether the driver is loaded in runvdr to check for the
'dvb' module (the last one loaded).
+- Fixed repeat function with LIRC (thanks to Stefan Huelswitt).
diff --git a/remote.c b/remote.c
index 16a1412d..db8fa870 100644
--- a/remote.c
+++ b/remote.c
@@ -6,7 +6,7 @@
*
* Ported to LIRC by Carsten Koch <Carsten.Koch@icem.de> 2000-06-16.
*
- * $Id: remote.c 1.22 2001/07/22 14:43:45 kls Exp $
+ * $Id: remote.c 1.23 2001/07/27 10:17:19 kls Exp $
*/
#include "remote.h"
@@ -466,9 +466,11 @@ void cRcIoLIRC::Action(void)
}
}
else if (receivedRepeat) { // all data has already been fetched, but the last one was a repeat, so let's generate a release
- receivedData = receivedRelease = true;
- receivedRepeat = false;
- WakeUp();
+ if (time_ms() - LastTime > REPEATDELAY) {
+ receivedData = receivedRelease = true;
+ receivedRepeat = false;
+ WakeUp();
+ }
}
}
}