From 66f934f6bbcd49501255e8ba368d4c8dae439af6 Mon Sep 17 00:00:00 2001 From: Kim - DG9VH Date: Mon, 30 Nov 2020 16:40:22 +0100 Subject: [PATCH] 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. --- Conf.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Conf.cpp b/Conf.cpp index 4ec01c5..688fc1e 100644 --- a/Conf.cpp +++ b/Conf.cpp @@ -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;