Modify Type Rewrite to handle BM Echo.

This commit is contained in:
Jonathan Naylor
2017-05-24 17:46:07 +01:00
parent f3c95d6618
commit c2bcec4a59
6 changed files with 25 additions and 26 deletions

View File

@@ -242,9 +242,9 @@ bool CConf::read()
if (p1 != NULL && p2 != NULL && p3 != NULL && p4 != NULL) {
CTypeRewriteStruct rewrite;
rewrite.m_fromSlot = ::atoi(p1);
rewrite.m_fromId = ::atoi(p2);
rewrite.m_fromTG = ::atoi(p2);
rewrite.m_toSlot = ::atoi(p3);
rewrite.m_toTG = ::atoi(p4);
rewrite.m_toId = ::atoi(p4);
m_dmrNetwork1TypeRewrites.push_back(rewrite);
}
} else if (::strcmp(key, "SrcRewrite") == 0) {
@@ -318,9 +318,9 @@ bool CConf::read()
if (p1 != NULL && p2 != NULL && p3 != NULL && p4 != NULL) {
CTypeRewriteStruct rewrite;
rewrite.m_fromSlot = ::atoi(p1);
rewrite.m_fromId = ::atoi(p2);
rewrite.m_fromTG = ::atoi(p2);
rewrite.m_toSlot = ::atoi(p3);
rewrite.m_toTG = ::atoi(p4);
rewrite.m_toId = ::atoi(p4);
m_dmrNetwork2TypeRewrites.push_back(rewrite);
}
} else if (::strcmp(key, "SrcRewrite") == 0) {