Update DMRAccessControl.cpp

This commit is contained in:
Andy Taylor 2017-07-09 23:41:36 +01:00 committed by GitHub
parent 9868df7fc7
commit c8e6b3d363

View file

@ -49,7 +49,7 @@ void CDMRAccessControl::init(const std::vector<unsigned int>& blacklist, const s
bool CDMRAccessControl::validateSrcId(unsigned int id)
{
if (m_selfOnly) {
if (m_id > 9999999) { // Check that the RF DMR-ID is bigger than 7 digits
if (m_id > 9999999) { // Check that the Config DMR-ID is bigger than 7 digits
if ((id == m_id/10) || (id == m_id/100)) { // does RF ID match Config ID / 10 or Config ID / 100
return true;
}