mirror of
https://github.com/g4klx/MMDVMHost
synced 2025-12-21 23:45:49 +08:00
Fix NXDN layer3 encode
This commit is contained in:
@@ -62,8 +62,8 @@ void CNXDNLayer3::encode(unsigned char* bytes, unsigned int length, unsigned int
|
|||||||
assert(bytes != NULL);
|
assert(bytes != NULL);
|
||||||
|
|
||||||
for (unsigned int i = 0U; i < length; i++, offset++) {
|
for (unsigned int i = 0U; i < length; i++, offset++) {
|
||||||
bool b = READ_BIT1(m_data, i);
|
bool b = READ_BIT1(m_data, offset);
|
||||||
WRITE_BIT1(bytes, offset, b);
|
WRITE_BIT1(bytes, i, b);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user