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;

pull/61/head
Bryan Biedenkapp 2 years ago
parent 580f26a478
commit d9c6447563

@ -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) {

Loading…
Cancel
Save

Powered by TurnKey Linux.