summaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authorukw2014-09-17 09:46:24 +0000
committerukw2014-09-17 09:46:24 +0000
commitf07dac6bedf59a1b5358827813252e1e011b73aa (patch)
tree2de181608931a9537f980ac171581048488ff3bc /main.c
parent8aaafe9d1b78f92e33e2791a8aa5e0aa877975b9 (diff)
downloadirmp-f07dac6bedf59a1b5358827813252e1e011b73aa.zip
Version 2.6.5: corrected PROGMEM access to irmp_protocol_names[]
git-svn-id: svn://mikrocontroller.net/irmp@147 aeb2e35e-bfc4-4214-b83c-9e8de998ed28
Diffstat (limited to 'main.c')
-rw-r--r--main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/main.c b/main.c
index 538e2fa..ed0c2f7 100644
--- a/main.c
+++ b/main.c
@@ -3,7 +3,7 @@
*
* Copyright (c) 2009-2014 Frank Meyer - frank(at)fli4l.de
*
- * $Id: main.c,v 1.20 2014/09/15 10:27:38 fm Exp $
+ * $Id: main.c,v 1.21 2014/09/17 09:44:47 fm Exp $
*
* This demo module is runnable on AVRs and LM4F120 Launchpad (ARM Cortex M4)
*
@@ -207,7 +207,7 @@ main (void)
#if IRMP_PROTOCOL_NAMES == 1
uart_puts_P (PSTR(" "));
- uart_puts_P (irmp_protocol_names[irmp_data.protocol]);
+ uart_puts_P (pgm_read_word (&(irmp_protocol_names[irmp_data.protocol])));
#endif
uart_puts_P (PSTR(" address: 0x"));