From ee3b6a0e86b20ccf3e2f5f10e718817618f75288 Mon Sep 17 00:00:00 2001 From: Andy CA6JAU Date: Sat, 10 Feb 2018 23:47:59 -0300 Subject: [PATCH] Fix LICH encode --- NXDNLICH.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/NXDNLICH.cpp b/NXDNLICH.cpp index df735b9..b137b8d 100644 --- a/NXDNLICH.cpp +++ b/NXDNLICH.cpp @@ -76,7 +76,7 @@ void CNXDNLICH::encode(unsigned char* bytes) bool b[8U]; unsigned int offset = 7U; for (unsigned int i = 0U; i < (NXDN_LICH_LENGTH_BITS / 2U); i++, offset--) - b[offset] = READ_BIT1(m_lich, offset); + b[offset] = READ_BIT1(m_lich, i); b[0U] = b[7U] ^ b[6U] ^ b[5U] ^ b[4U];