mirror of
https://github.com/g4klx/MMDVMHost
synced 2025-12-21 15:09:23 +08:00
Update DMRAccessControl.cpp
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user