Only allow FM mode in full duplex.

This commit is contained in:
Jonathan Naylor 2020-04-19 16:11:55 +01:00
parent a450c2b2ad
commit cb732c9a62
2 changed files with 3 additions and 3 deletions

View file

@ -301,7 +301,7 @@ bool CModem::open()
return false;
}
if (m_fmEnabled) {
if (m_fmEnabled && m_duplex) {
ret = setFMCallsignParams();
if (!ret) {
m_serial->close();
@ -1528,7 +1528,7 @@ bool CModem::setConfig()
buffer[4U] |= 0x10U;
if (m_pocsagEnabled)
buffer[4U] |= 0x20U;
if (m_fmEnabled)
if (m_fmEnabled && m_duplex)
buffer[4U] |= 0x40U;
buffer[5U] = m_txDelay / 10U; // In 10ms units

View file

@ -19,6 +19,6 @@
#if !defined(VERSION_H)
#define VERSION_H
const char* VERSION = "20200418";
const char* VERSION = "20200419";
#endif