From c7c9a4a1320292cd9a71e01ad571626cfa4a30d3 Mon Sep 17 00:00:00 2001 From: ukw Date: Tue, 15 Jun 2010 15:40:11 +0000 Subject: Version 1.6.6: added FDC & RC-CAR protocol to IRSND git-svn-id: svn://mikrocontroller.net/irmp@30 aeb2e35e-bfc4-4214-b83c-9e8de998ed28 --- irmp.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'irmp.c') 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: -- cgit v1.2.3