Added support for ranges (limits) on UV6D

This commit is contained in:
Adam Wysocki
2026-04-15 22:42:02 +02:00
parent f0fc7a468e
commit a0f7cd2f94

View File

@ -40,11 +40,14 @@ unsigned CModel::GetChannelsCount() const
bool CModel::AreRangesSupported() const
{
return m_model != MODEL_UV6D;
return true;
}
unsigned CModel::GetRangesOffset() const
{
if(m_model == MODEL_UV6D)
return 0xf80;
return m_model == MODEL_UVA1 ? 0x300 : 0x900;
}
@ -112,7 +115,7 @@ unsigned CModel::GetRows() const
return 146;
if (m_model == MODEL_UV6D)
return 129; /* Only header and channels */
return 129+5; /* Header, channels, space, ranges */
return 144;
}