summaryrefslogtreecommitdiff
path: root/interface.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2003-04-12 14:37:57 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2003-04-12 14:37:57 +0200
commitf20648eab26f8efee41642f198da3d35b2d408c1 (patch)
tree411516a15e64095a26b46515364e3ca864db99fb /interface.c
parentbd233752488dc28a81137e45d177f77177ba10e2 (diff)
downloadvdr-f20648eab26f8efee41642f198da3d35b2d408c1.tar.gz
vdr-f20648eab26f8efee41642f198da3d35b2d408c1.tar.bz2
The LIRC and RCU remote control no longer try to learn keys in case of errors during startup
Diffstat (limited to 'interface.c')
-rw-r--r--interface.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/interface.c b/interface.c
index 82b2531e..9245c85f 100644
--- a/interface.c
+++ b/interface.c
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: interface.c 1.62 2003/04/06 12:47:51 kls Exp $
+ * $Id: interface.c 1.63 2003/04/12 14:17:49 kls Exp $
*/
#include "interface.h"
@@ -411,6 +411,10 @@ void cInterface::QueryKeys(cRemote *Remote)
void cInterface::LearnKeys(void)
{
for (cRemote *Remote = Remotes.First(); Remote; Remote = Remotes.Next(Remote)) {
+ if (!Remote->Ready()) {
+ esyslog("ERROR: remote control %s not ready!", Remote->Name());
+ continue;
+ }
bool known = Keys.KnowsRemote(Remote->Name());
dsyslog("remote control %s - %s", Remote->Name(), known ? "keys known" : "learning keys");
if (!known) {