summaryrefslogtreecommitdiff
path: root/irmp.c
diff options
context:
space:
mode:
authorukw2013-01-23 10:58:40 +0000
committerukw2013-01-23 10:58:40 +0000
commite522639e5daf527203403e3edba87f11fc071148 (patch)
treed81e41afac9790ababd88010af5285156f5f91c4 /irmp.c
parenta6a30aa6c9be5d57126e2b523d5dc23930abbfce (diff)
downloadirmp-e522639e5daf527203403e3edba87f11fc071148.zip
Version 2.3.7: changed detection of inverted Denon frames
git-svn-id: svn://mikrocontroller.net/irmp@115 aeb2e35e-bfc4-4214-b83c-9e8de998ed28
Diffstat (limited to 'irmp.c')
-rw-r--r--irmp.c16
1 files changed, 5 insertions, 11 deletions
diff --git a/irmp.c b/irmp.c
index 04f8eae..2a0d65b 100644
--- a/irmp.c
+++ b/irmp.c
@@ -3,7 +3,7 @@
*
* Copyright (c) 2009-2013 Frank Meyer - frank(at)fli4l.de
*
- * $Id: irmp.c,v 1.137 2013/01/17 07:33:13 fm Exp $
+ * $Id: irmp.c,v 1.138 2013/01/21 11:11:54 fm Exp $
*
* ATMEGA88 @ 8 MHz
*
@@ -1884,7 +1884,7 @@ irmp_ISR (void)
if (denon_repetition_len >= DENON_AUTO_REPETITION_PAUSE_LEN && last_irmp_denon_command != 0)
{
- ANALYZE_PRINTF ("%8.3fms error 6: did not receive inverted command repetition\n",
+ ANALYZE_PRINTF ("%8.3fms warning: did not receive inverted command repetition\n",
(double) (time_counter * 1000) / F_INTERRUPTS);
last_irmp_denon_command = 0;
denon_repetition_len = 0xFFFF;
@@ -3241,25 +3241,19 @@ irmp_ISR (void)
}
else
{
- if ((irmp_tmp_command & 0x03) == 0x00)
+ if ((irmp_tmp_command & 0x01) == 0x00)
{
ANALYZE_PRINTF ("%8.3fms info Denon: waiting for inverted command repetition\n", (double) (time_counter * 1000) / F_INTERRUPTS);
last_irmp_denon_command = irmp_tmp_command;
denon_repetition_len = 0;
irmp_ir_detected = FALSE;
}
- else if ((irmp_tmp_command & 0x03) == 0x03)
+ else
{
- ANALYZE_PRINTF ("%8.3fms error Denon: got unexpected inverted command, ignoring it\n", (double) (time_counter * 1000) / F_INTERRUPTS);
+ ANALYZE_PRINTF ("%8.3fms warning Denon: got unexpected inverted command, ignoring it\n", (double) (time_counter * 1000) / F_INTERRUPTS);
last_irmp_denon_command = 0;
irmp_ir_detected = FALSE;
}
- else // fm 2013-01-17: 0x01 or 0x10: there is no inverted command
- {
- irmp_protocol = irmp_param.protocol; // store protocol
- irmp_address = irmp_tmp_address; // store address
- irmp_command = irmp_tmp_command; // store command
- }
}
}
else