summaryrefslogtreecommitdiff
path: root/irmp
diff options
context:
space:
mode:
authorGerhard Sittig <gerhard.sittig@gmx.net>2020-07-19 08:44:00 +0200
committerGerhard Sittig <gerhard.sittig@gmx.net>2020-07-19 08:49:26 +0200
commit33687d6ed7b923662566e6a6f2761792bb087fb4 (patch)
tree003060cb2287c5fd3ab3086db838fcb8180a4fd5 /irmp
parent47ff9910f7e1c6f170a48aedad152ca19ccd4579 (diff)
downloadlibsigrokdecode-33687d6ed7b923662566e6a6f2761792bb087fb4.tar.gz
libsigrokdecode-33687d6ed7b923662566e6a6f2761792bb087fb4.zip
irmp: silence "illegal character encoding" compiler warning
Replace non-ASCII characters in the FDC keyboard map with their respective number values, since the character presentation is non-portable and results in compiler warnings. A similar change was done in IRMP version 3.2.0 (SVN r192 as of 2020-06-22) which the sigrok project has not caught up with yet.
Diffstat (limited to 'irmp')
-rw-r--r--irmp/irmp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/irmp/irmp.c b/irmp/irmp.c
index ccf3c25..42b04c8 100644
--- a/irmp/irmp.c
+++ b/irmp/irmp.c
@@ -5682,12 +5682,12 @@ get_fdc_key (uint_fast16_t cmd)
static uint8_t key_table[128] =
{
// 0 1 2 3 4 5 6 7 8 9 A B C D E F
- 0, '^', '1', '2', '3', '4', '5', '6', '7', '8', '9', '0', 0xDF, '´', 0, '\b',
+ 0, '^', '1', '2', '3', '4', '5', '6', '7', '8', '9', '0', 0xDF, 0xB4, 0, '\b',
'\t', 'q', 'w', 'e', 'r', 't', 'z', 'u', 'i', 'o', 'p', 0xFC, '+', 0, 0, 'a',
's', 'd', 'f', 'g', 'h', 'j', 'k', 'l', 0xF6, 0xE4, '#', '\r', 0, '<', 'y', 'x',
'c', 'v', 'b', 'n', 'm', ',', '.', '-', 0, 0, 0, 0, 0, ' ', 0, 0,
- 0, '°', '!', '"', '§', '$', '%', '&', '/', '(', ')', '=', '?', '`', 0, '\b',
+ 0, 0xB0, '!', '"', 0xA7, '$', '%', '&', '/', '(', ')', '=', '?', '`', 0, '\b',
'\t', 'Q', 'W', 'E', 'R', 'T', 'Z', 'U', 'I', 'O', 'P', 0xDC, '*', 0, 0, 'A',
'S', 'D', 'F', 'G', 'H', 'J', 'K', 'L', 0xD6, 0xC4, '\'', '\r', 0, '>', 'Y', 'X',
'C', 'V', 'B', 'N', 'M', ';', ':', '_', 0, 0, 0, 0, 0, ' ', 0, 0