*\r
* Copyright (c) 2009-2012 Frank Meyer - frank(at)fli4l.de\r
*\r
- * $Id: irmp.c,v 1.129 2012/10/26 08:09:37 fm Exp $\r
+ * $Id: irmp.c,v 1.130 2012/11/06 10:19:41 fm Exp $\r
*\r
* ATMEGA88 @ 8 MHz\r
*\r
}\r
else\r
{\r
- ANALYZE_PRINTF ("%8.3fms waiting for inverted command repetition\n", (double) (time_counter * 1000) / F_INTERRUPTS);\r
+ if ((irmp_tmp_command & 0x03) == 0)\r
+ {\r
+ ANALYZE_PRINTF ("%8.3fms waiting for inverted command repetition\n", (double) (time_counter * 1000) / F_INTERRUPTS);\r
+ last_irmp_denon_command = irmp_tmp_command;\r
+ }\r
+ else\r
+ {\r
+ ANALYZE_PRINTF ("%8.3fms got unexpected inverted command, ignoring it\n", (double) (time_counter * 1000) / F_INTERRUPTS);\r
+ last_irmp_denon_command = 0;\r
+ }\r
irmp_ir_detected = FALSE;\r
- last_irmp_denon_command = irmp_tmp_command;\r
repetition_len = 0;\r
}\r
}\r
else if (ch == '\n')\r
{\r
IRMP_PIN = 0xff;\r
+ time_counter = 0;\r
\r
if (list && pause > 0)\r
{\r
}\r
else if (ch == '#')\r
{\r
+ time_counter = 0;\r
+\r
if (analyze)\r
{\r
while ((ch = getchar()) != '\n' && ch != EOF)\r