From 11dc4be0ec7aa91149d6f1ffbcbea8b8e9f3ee6d Mon Sep 17 00:00:00 2001 From: jgromes Date: Fri, 26 Jul 2019 20:06:12 +0200 Subject: [PATCH] [RTTY] Fixed ITA2 encoding --- src/protocols/RTTY.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/protocols/RTTY.cpp b/src/protocols/RTTY.cpp index 0cc22dc7..e0f6d90b 100644 --- a/src/protocols/RTTY.cpp +++ b/src/protocols/RTTY.cpp @@ -84,11 +84,11 @@ uint16_t ITA2String::getBits(char c) { // search ITA2 table uint16_t code = 0x0000; for(uint8_t i = 0; i < ITA2_LENGTH; i++) { - if(pgm_read_byte(ITA2Table[i][0]) == c) { + if(pgm_read_byte(&ITA2Table[i][0]) == c) { // character is in letter shift code = (ITA2_LTRS << 5) | i; break; - } else if(pgm_read_byte(ITA2Table[i][1]) == c) { + } else if(pgm_read_byte(&ITA2Table[i][1]) == c) { // character is in figures shift code = (ITA2_FIGS << 5) | i; break;