Fix NXDN layer3 encode

This commit is contained in:
Andy CA6JAU 2018-03-10 15:16:54 -03:00
parent 87c54358a8
commit 29248a99f3

View file

@ -62,8 +62,8 @@ void CNXDNLayer3::encode(unsigned char* bytes, unsigned int length, unsigned int
assert(bytes != NULL);
for (unsigned int i = 0U; i < length; i++, offset++) {
bool b = READ_BIT1(m_data, i);
WRITE_BIT1(bytes, offset, b);
bool b = READ_BIT1(m_data, offset);
WRITE_BIT1(bytes, i, b);
}
}