mirror of
https://github.com/g4klx/MMDVMHost.git
synced 2026-04-04 14:07:36 +00:00
Fix LICH processing.
This commit is contained in:
parent
cf2f8ee3c8
commit
d905de493d
3 changed files with 14 additions and 3 deletions
|
|
@ -178,7 +178,11 @@ void CNXDNSACCH::getData(unsigned char* data) const
|
|||
{
|
||||
assert(data != NULL);
|
||||
|
||||
::memcpy(data, m_data + 1U, 3U);
|
||||
unsigned int offset = 8U;
|
||||
for (unsigned int i = 0U; i < 18U; i++, offset++) {
|
||||
bool b = READ_BIT1(data, offset);
|
||||
WRITE_BIT1(m_data, i, b);
|
||||
}
|
||||
}
|
||||
|
||||
void CNXDNSACCH::setRAN(unsigned char ran)
|
||||
|
|
@ -197,7 +201,11 @@ void CNXDNSACCH::setData(const unsigned char* data)
|
|||
{
|
||||
assert(data != NULL);
|
||||
|
||||
::memcpy(m_data + 1U, data, 3U);
|
||||
unsigned int offset = 8U;
|
||||
for (unsigned int i = 0U; i < 18U; i++, offset++) {
|
||||
bool b = READ_BIT1(data, i);
|
||||
WRITE_BIT1(m_data, offset, b);
|
||||
}
|
||||
}
|
||||
|
||||
CNXDNSACCH& CNXDNSACCH::operator=(const CNXDNSACCH& sacch)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue