Skip to content

Commit

Permalink
Fix LICH encode
Browse files Browse the repository at this point in the history
  • Loading branch information
juribeparada committed Feb 11, 2018
1 parent aa1a3f4 commit ee3b6a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion NXDNLICH.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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];

Expand Down

0 comments on commit ee3b6a0

Please sign in to comment.