M17 bug fixing.

This commit is contained in:
Jonathan Naylor
2020-10-20 14:26:47 +01:00
parent d58a0c53b5
commit 1bb1e9da59
4 changed files with 17 additions and 15 deletions

View File

@@ -80,13 +80,13 @@ void CM17LICH::setDest(const std::string& callsign)
unsigned char CM17LICH::getDataType() const
{
return (m_lich[12U] >> 1) & 0x03U;
return (m_lich[13U] >> 1) & 0x03U;
}
void CM17LICH::setDataType(unsigned char type)
{
m_lich[12U] &= 0xF9U;
m_lich[12U] |= (type << 1) & 0x06U;
m_lich[13U] &= 0xF9U;
m_lich[13U] |= (type << 1) & 0x06U;
}
void CM17LICH::reset()