Fix YSFGateway Crash on searching for a reflector with an ID that doesn't exist, code cleanup around the WiresX protocol

This commit is contained in:
root 2025-05-20 00:50:36 +01:00
parent 702d9e1312
commit d583357cab
5 changed files with 77 additions and 31 deletions

View file

@ -142,8 +142,7 @@ bool CYSFReflectors::load()
refl->m_addrLen = addrLen;
refl->m_count = std::string(p6);
refl->m_type = YSF_TYPE::YSF;
refl->m_wiresX = (refl->m_name.compare(0, 3, "XLX") == 0);
refl->m_wiresX = ( refl->m_name.compare(0, 3, "XLX") == 0 || refl->m_name.compare(2, 4, "-XLX") == 0 );
refl->m_name.resize(16U, ' ');
refl->m_desc.resize(14U, ' ');