Simplifying code
This commit is contained in:
parent
87510f4e7d
commit
32769af26a
1 changed files with 2 additions and 12 deletions
|
@ -268,19 +268,9 @@ int CYSFGateway::run()
|
|||
unsigned char ft = fich.getFT();
|
||||
|
||||
CYSFReflector* reflector = m_wiresX->getReflector();
|
||||
if (m_ysfNetwork != NULL && m_linkType == LINK_YSF && wiresXCommandPassthrough) {
|
||||
if (reflector->m_wiresX) {
|
||||
processDTMF(buffer, dt);
|
||||
processWiresX(buffer, fi, dt, fn, ft, true, wiresXCommandPassthrough);
|
||||
} else {
|
||||
m_exclude = (dt == YSF_DT_DATA_FR_MODE);
|
||||
processDTMF(buffer, dt);
|
||||
processWiresX(buffer, fi, dt, fn, ft, false, wiresXCommandPassthrough);
|
||||
}
|
||||
} else if (wiresXCommandPassthrough) {
|
||||
m_exclude = (dt == YSF_DT_DATA_FR_MODE);
|
||||
if (m_ysfNetwork != NULL && m_linkType == LINK_YSF && wiresXCommandPassthrough && reflector->m_wiresX) {
|
||||
processDTMF(buffer, dt);
|
||||
processWiresX(buffer, fi, dt, fn, ft, false, wiresXCommandPassthrough);
|
||||
processWiresX(buffer, fi, dt, fn, ft, true, wiresXCommandPassthrough);
|
||||
} else {
|
||||
m_exclude = (dt == YSF_DT_DATA_FR_MODE);
|
||||
processDTMF(buffer, dt);
|
||||
|
|
Loading…
Reference in a new issue