Fix NXDN layer3 encode
This commit is contained in:
parent
87c54358a8
commit
29248a99f3
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue