fix SetYsfCallsign() missing dmrid update

this caused YSF transmissions to show-up on DMR listeners with dmrid 0
This commit is contained in:
narspt 2021-10-28 23:07:52 +01:00 committed by GitHub
parent a45cdff2d2
commit 43c1a10832
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -221,6 +221,12 @@ void CCallsign::SetYsfCallsign(const char *sz)
m_Suffix[j++] = sz[i];
}
}
// and update dmrid
g_DmridDir.Lock();
{
m_uiDmrid = g_DmridDir.FindDmrid(*this);
}
g_DmridDir.Unlock();
}
void CCallsign::SetDmrid(uint32 dmrid, bool UpdateCallsign)