summaryrefslogtreecommitdiff
path: root/remote.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2000-04-15 17:38:11 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2000-04-15 17:38:11 +0200
commit735093b8faef4f667e6a6c65f7290858286816e3 (patch)
treef5b3cb133d5ec1ede63de04cf9c394bcf4a514a2 /remote.c
parent571686d90996968c01a8bc560659e364efab2942 (diff)
downloadvdr-735093b8faef4f667e6a6c65f7290858286816e3.tar.gz
vdr-735093b8faef4f667e6a6c65f7290858286816e3.tar.bz2
Implemented actual record/replay; support for CICAM0.0.3
Diffstat (limited to 'remote.c')
-rw-r--r--remote.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/remote.c b/remote.c
index c2fb36f6..bf5b41f8 100644
--- a/remote.c
+++ b/remote.c
@@ -4,7 +4,7 @@
* See the main source file 'osm.c' for copyright information and
* how to reach the author.
*
- * $Id: remote.c 1.1 2000/02/19 13:36:48 kls Exp $
+ * $Id: remote.c 1.2 2000/04/15 16:00:51 kls Exp $
*/
#include "remote.h"
@@ -221,7 +221,7 @@ bool cRcIo::String(char *s)
}
}
}
- return Number(n, mode == modeH);
+ return Number(n, true);
}
bool cRcIo::DetectCode(unsigned char *Code, unsigned short *Address)
@@ -244,8 +244,11 @@ bool cRcIo::DetectCode(unsigned char *Code, unsigned short *Address)
String(buf);
SetCode(*Code, 0);
unsigned int Command;
- if (GetCommand(&Command, Address))
+ if (GetCommand(&Command, Address)) {
+ SetMode(modeB);
+ String("----");
return true;
+ }
if (*Code < 'D') {
(*Code)++;
return false;