summaryrefslogtreecommitdiff
path: root/irmp.c
diff options
context:
space:
mode:
authorukw2010-06-15 15:40:11 +0000
committerukw2010-06-15 15:40:11 +0000
commitc7c9a4a1320292cd9a71e01ad571626cfa4a30d3 (patch)
tree73b820ab43d0e69ac8841ab239d9716e56bd3471 /irmp.c
parent586dc529cebb8b3a7e3e6ce18bca15d6a5df2160 (diff)
downloadirmp-c7c9a4a1320292cd9a71e01ad571626cfa4a30d3.zip
Version 1.6.6: added FDC & RC-CAR protocol to IRSND
git-svn-id: svn://mikrocontroller.net/irmp@30 aeb2e35e-bfc4-4214-b83c-9e8de998ed28
Diffstat (limited to 'irmp.c')
-rw-r--r--irmp.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/irmp.c b/irmp.c
index 8418b28..98bb00a 100644
--- a/irmp.c
+++ b/irmp.c
@@ -3,7 +3,7 @@
*
* Copyright (c) 2009-2010 Frank Meyer - frank(at)fli4l.de
*
- * $Id: irmp.c,v 1.51 2010/06/15 12:01:20 fm Exp $
+ * $Id: irmp.c,v 1.52 2010/06/15 15:47:21 fm Exp $
*
* ATMEGA88 @ 8 MHz
*
@@ -1244,10 +1244,12 @@ irmp_get_data (IRMP_DATA * irmp_data_p)
// Bit 12 11 10 9 8 7 6 5 4 3 2 1 0
// V D7 D6 D5 D4 D3 D2 D1 D0 A1 A0 C1 C0 // 10 9 8 7 6 5 4 3 2 1 0
irmp_address = (irmp_command & 0x000C) >> 2; // addr: 0 0 0 0 0 0 0 0 0 A1 A0
+printf ("\n! %04x ", irmp_command);
irmp_command = ((irmp_command & 0x1000) >> 2) | // V-Bit: V 0 0 0 0 0 0 0 0 0 0
((irmp_command & 0x0003) << 8) | // C-Bits: 0 C1 C0 0 0 0 0 0 0 0 0
((irmp_command & 0x0FF0) >> 4); // D-Bits: D7 D6 D5 D4 D3 D2 D1 D0
rtc = TRUE; // Summe: V C1 C0 D7 D6 D5 D4 D3 D2 D1 D0
+printf ("%04x\n", irmp_command);
break;
#endif
default: