Merge pull request #130 from AndyTaylorTweet/patch-3
Update YSFGateway.cpp
This commit is contained in:
commit
1044890df4
1 changed files with 14 additions and 5 deletions
|
@ -268,13 +268,22 @@ int CYSFGateway::run()
|
|||
unsigned char ft = fich.getFT();
|
||||
|
||||
CYSFReflector* reflector = m_wiresX->getReflector();
|
||||
if ( (wiresXCommandPassthrough) && (reflector->m_wiresX) ) {
|
||||
// Allow WiresX to Pass Through
|
||||
processDTMF(buffer, dt);
|
||||
processWiresX(buffer, fi, dt, fn, ft, true);
|
||||
if (m_ysfNetwork != NULL && m_linkType == LINK_YSF) {
|
||||
// Connected to a YSF reflector, figure out what kind it is
|
||||
if ( (wiresXCommandPassthrough) && (reflector->m_wiresX) ) {
|
||||
// Pass Control Commands (WiresX capable reflector)
|
||||
processDTMF(buffer, dt);
|
||||
processWiresX(buffer, fi, dt, fn, ft, true);
|
||||
}
|
||||
else {
|
||||
// Don't Pass Control Commands (Not a WiresX capable reflector)
|
||||
m_exclude = (dt == YSF_DT_DATA_FR_MODE);
|
||||
processDTMF(buffer, dt);
|
||||
processWiresX(buffer, fi, dt, fn, ft, false);
|
||||
}
|
||||
}
|
||||
else {
|
||||
// Don't Pass Control Commands
|
||||
// Don't Pass Control Commands (Not connected to a reflector)
|
||||
m_exclude = (dt == YSF_DT_DATA_FR_MODE);
|
||||
processDTMF(buffer, dt);
|
||||
processWiresX(buffer, fi, dt, fn, ft, false);
|
||||
|
|
Loading…
Reference in a new issue