mirror of
https://github.com/oe7drt/YSFClients.git
synced 2026-04-04 22:07:44 +00:00
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:
parent
702d9e1312
commit
d583357cab
5 changed files with 77 additions and 31 deletions
|
|
@ -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, ' ');
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue