Update YSFGateway.cpp

replace my code with yours...

this seems to work well enough for testing, with one caveat, I need to remove YSF2xxx modes from the Pi-Star host files and modify the dashboard to cope without them in there, not a problem.
This commit is contained in:
Andy Taylor 2019-01-29 17:34:58 +00:00 committed by GitHub
parent 8288d64848
commit 4327b23c91
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -268,9 +268,9 @@ int CYSFGateway::run()
unsigned char ft = fich.getFT();
CYSFReflector* reflector = m_wiresX->getReflector();
if ( (wiresXCommandPassthrough) && (reflector) ) {
// Connected to a reflector, figure out what kind it is
if (reflector->m_wiresX) {
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);