mirror of
https://github.com/g4klx/MMDVMHost.git
synced 2026-04-06 15:04:18 +00:00
Fix LICH processing.
This commit is contained in:
parent
cf2f8ee3c8
commit
d905de493d
3 changed files with 14 additions and 3 deletions
|
|
@ -56,7 +56,7 @@ bool CNXDNLICH::decode(const unsigned char* bytes)
|
|||
unsigned int offset2 = 7U;
|
||||
for (unsigned int i = 0U; i < (NXDN_LICH_LENGTH_BITS / 2U); i++, offset1 += 2U, offset2--) {
|
||||
b[offset2] = READ_BIT1(bytes, offset1);
|
||||
WRITE_BIT1(lich, offset2, b[offset2]);
|
||||
WRITE_BIT1(lich, i, b[offset2]);
|
||||
}
|
||||
|
||||
bool parity = b[7U] ^ b[6U] ^ b[5U] ^ b[4U];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue