mirror of
https://github.com/g4klx/MMDVMHost
synced 2025-12-22 08:05:49 +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)
|
bool CDMRAccessControl::validateSrcId(unsigned int id)
|
||||||
{
|
{
|
||||||
if (m_selfOnly) {
|
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
|
if ((id == m_id/10) || (id == m_id/100)) { // does RF ID match Config ID / 10 or Config ID / 100
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user