From d9c64475636529b4772c7e09f1cbf7cf0f018904 Mon Sep 17 00:00:00 2001 From: Bryan Biedenkapp Date: Tue, 2 Jul 2024 09:45:33 -0400 Subject: [PATCH] fire off a U_REG_CMD when performing stale unit deregistration to force a SU to re-register itself when the inactivity timer is hit; --- src/host/p25/Control.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/host/p25/Control.cpp b/src/host/p25/Control.cpp index 6b42f4bd..eba8ff34 100644 --- a/src/host/p25/Control.cpp +++ b/src/host/p25/Control.cpp @@ -407,6 +407,11 @@ void Control::setOptions(yaml::Node& conf, bool supervisor, const std::string cw m_affiliations.setUnitDeregCallback([=](uint32_t srcId) { if (m_network != nullptr) m_network->announceUnitDeregistration(srcId); + + // fire off a U_REG_CMD to get the SU to re-affiliate + if (m_enableControl) { + m_control->writeRF_TSDU_U_Reg_Cmd(srcId); + } }); if (printOptions) {