Avoid missconfiguration if TX=RX-QRG in Duplex-setup

As we have on several modes in several networks sometimes issues with loops created by missconfigured duplex-hotspots, this is a quick solution to avoid this.
This commit is contained in:
Kim - DG9VH 2020-11-30 16:40:22 +01:00 committed by GitHub
parent 1b0caaae23
commit 66f934f6bb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -962,6 +962,12 @@ bool CConf::read()
}
}
if ( m_duplex && m_rxFrequency == m_txFrequency ) {
::fprintf(stderr, "Duplex == 1 and TX == RX-QRG!\n");
::fclose(fp);
return false;
}
::fclose(fp);
return true;