Skip to content

Commit cb89b34

Browse files
committed
Rename SimpleMode to LinkMode.
1 parent ded46eb commit cb89b34

File tree

7 files changed

+21
-21
lines changed

7 files changed

+21
-21
lines changed

Conf.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ m_fmCTCSSLevel(2.0F),
217217
m_fmKerchunkTime(0U),
218218
m_fmHangTime(7U),
219219
m_fmAccessMode(1U),
220-
m_fmSimpleMode(false),
220+
m_fmLinkMode(false),
221221
m_fmCOSInvert(false),
222222
m_fmNoiseSquelch(false),
223223
m_fmSquelchHighThreshold(30U),
@@ -869,8 +869,8 @@ bool CConf::read()
869869
m_fmHangTime = (unsigned int)::atoi(value);
870870
else if (::strcmp(key, "AccessMode") == 0)
871871
m_fmAccessMode = ::atoi(value);
872-
else if (::strcmp(key, "SimpleMode") == 0)
873-
m_fmSimpleMode = ::atoi(value) == 1;
872+
else if (::strcmp(key, "LinkMode") == 0)
873+
m_fmLinkMode = ::atoi(value) == 1;
874874
else if (::strcmp(key, "COSInvert") == 0)
875875
m_fmCOSInvert = ::atoi(value) == 1;
876876
else if (::strcmp(key, "NoiseSquelch") == 0)
@@ -1899,9 +1899,9 @@ unsigned int CConf::getFMAccessMode() const
18991899
return m_fmAccessMode;
19001900
}
19011901

1902-
bool CConf::getFMSimpleMode() const
1902+
bool CConf::getFMLinkMode() const
19031903
{
1904-
return m_fmSimpleMode;
1904+
return m_fmLinkMode;
19051905
}
19061906

19071907
bool CConf::getFMCOSInvert() const

Conf.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ class CConf
220220
unsigned int getFMKerchunkTime() const;
221221
unsigned int getFMHangTime() const;
222222
unsigned int getFMAccessMode() const;
223-
bool getFMSimpleMode() const;
223+
bool getFMLinkMode() const;
224224
bool getFMCOSInvert() const;
225225
bool getFMNoiseSquelch() const;
226226
unsigned int getFMSquelchHighThreshold() const;
@@ -538,7 +538,7 @@ class CConf
538538
unsigned int m_fmKerchunkTime;
539539
unsigned int m_fmHangTime;
540540
unsigned int m_fmAccessMode;
541-
bool m_fmSimpleMode;
541+
bool m_fmLinkMode;
542542
bool m_fmCOSInvert;
543543
bool m_fmNoiseSquelch;
544544
unsigned int m_fmSquelchHighThreshold;

MMDVM.ini

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -193,8 +193,8 @@ HangTime=7
193193
# 2 - CTCSS only access with COS
194194
# 3 - CTCSS only access with COS to start, then carrier access with COS
195195
AccessMode=1
196-
# SimpleMode=1 to remove almost all of the logic control
197-
SimpleMode=0
196+
# LinkMode=1 to remove almost all of the logic control
197+
LinkMode=0
198198
COSInvert=0
199199
NoiseSquelch=0
200200
SquelchThreshold=30

MMDVMHost.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1518,7 +1518,7 @@ bool CMMDVMHost::createModem()
15181518
unsigned int kerchunkTime = m_conf.getFMKerchunkTime();
15191519
unsigned int hangTime = m_conf.getFMHangTime();
15201520
unsigned int accessMode = m_conf.getFMAccessMode();
1521-
bool simpleMode = m_conf.getFMSimpleMode();
1521+
bool linkMode = m_conf.getFMLinkMode();
15221522
bool cosInvert = m_conf.getFMCOSInvert();
15231523
bool noiseSquelch = m_conf.getFMNoiseSquelch();
15241524
unsigned int squelchHighThreshold = m_conf.getFMSquelchHighThreshold();
@@ -1553,7 +1553,7 @@ bool CMMDVMHost::createModem()
15531553
LogInfo(" Kerchunk Time: %us", kerchunkTime);
15541554
LogInfo(" Hang Time: %us", hangTime);
15551555
LogInfo(" Access Mode: %u", accessMode);
1556-
LogInfo(" Simple Mode: %s", simpleMode ? "yes" : "no");
1556+
LogInfo(" Link Mode: %s", linkMode ? "yes" : "no");
15571557
LogInfo(" COS Invert: %s", cosInvert ? "yes" : "no");
15581558

15591559
LogInfo(" Noise Squelch: %s", noiseSquelch ? "yes" : "no");
@@ -1568,7 +1568,7 @@ bool CMMDVMHost::createModem()
15681568

15691569
m_modem->setFMCallsignParams(callsign, callsignSpeed, callsignFrequency, callsignTime, callsignHoldoff, callsignHighLevel, callsignLowLevel, callsignAtStart, callsignAtEnd, callsignAtLatch);
15701570
m_modem->setFMAckParams(rfAck, ackSpeed, ackFrequency, ackMinTime, ackDelay, ackLevel);
1571-
m_modem->setFMMiscParams(timeout, timeoutLevel, ctcssFrequency, ctcssHighThreshold, ctcssLowThreshold, ctcssLevel, kerchunkTime, hangTime, accessMode, simpleMode, cosInvert, noiseSquelch, squelchHighThreshold, squelchLowThreshold, rfAudioBoost, maxDevLevel);
1571+
m_modem->setFMMiscParams(timeout, timeoutLevel, ctcssFrequency, ctcssHighThreshold, ctcssLowThreshold, ctcssLevel, kerchunkTime, hangTime, accessMode, linkMode, cosInvert, noiseSquelch, squelchHighThreshold, squelchLowThreshold, rfAudioBoost, maxDevLevel);
15721572

15731573
if (m_conf.getFMNetworkEnabled()) {
15741574
std::string extAck = m_conf.getFMExtAck();

Modem.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ m_fmCtcssLevel(10.0F),
244244
m_fmKerchunkTime(0U),
245245
m_fmHangTime(5U),
246246
m_fmAccessMode(1U),
247-
m_fmSimpleMode(false),
247+
m_fmLinkMode(false),
248248
m_fmCOSInvert(false),
249249
m_fmNoiseSquelch(false),
250250
m_fmSquelchHighThreshold(30U),
@@ -2668,7 +2668,7 @@ void CModem::setFMAckParams(const std::string& rfAck, unsigned int ackSpeed, uns
26682668
m_fmAckLevel = ackLevel;
26692669
}
26702670

2671-
void CModem::setFMMiscParams(unsigned int timeout, float timeoutLevel, float ctcssFrequency, unsigned int ctcssHighThreshold, unsigned int ctcssLowThreshold, float ctcssLevel, unsigned int kerchunkTime, unsigned int hangTime, unsigned int accessMode, bool simpleMode, bool cosInvert, bool noiseSquelch, unsigned int squelchHighThreshold, unsigned int squelchLowThreshold, unsigned int rfAudioBoost, float maxDevLevel)
2671+
void CModem::setFMMiscParams(unsigned int timeout, float timeoutLevel, float ctcssFrequency, unsigned int ctcssHighThreshold, unsigned int ctcssLowThreshold, float ctcssLevel, unsigned int kerchunkTime, unsigned int hangTime, unsigned int accessMode, bool linkMode, bool cosInvert, bool noiseSquelch, unsigned int squelchHighThreshold, unsigned int squelchLowThreshold, unsigned int rfAudioBoost, float maxDevLevel)
26722672
{
26732673
m_fmTimeout = timeout;
26742674
m_fmTimeoutLevel = timeoutLevel;
@@ -2682,9 +2682,9 @@ void CModem::setFMMiscParams(unsigned int timeout, float timeoutLevel, float ctc
26822682

26832683
m_fmHangTime = hangTime;
26842684

2685-
m_fmAccessMode = accessMode;
2686-
m_fmSimpleMode = simpleMode;
2687-
m_fmCOSInvert = cosInvert;
2685+
m_fmAccessMode = accessMode;
2686+
m_fmLinkMode = linkMode;
2687+
m_fmCOSInvert = cosInvert;
26882688

26892689
m_fmNoiseSquelch = noiseSquelch;
26902690
m_fmSquelchHighThreshold = squelchHighThreshold;
@@ -2836,7 +2836,7 @@ bool CModem::setFMMiscParams()
28362836
buffer[10U] = m_fmHangTime;
28372837

28382838
buffer[11U] = m_fmAccessMode & 0x0FU;
2839-
if (m_fmSimpleMode)
2839+
if (m_fmLinkMode)
28402840
buffer[11U] |= 0x20U;
28412841
if (m_fmNoiseSquelch)
28422842
buffer[11U] |= 0x40U;

Modem.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ class CModem {
5959

6060
void setFMCallsignParams(const std::string& callsign, unsigned int callsignSpeed, unsigned int callsignFrequency, unsigned int callsignTime, unsigned int callsignHoldoff, float callsignHighLevel, float callsignLowLevel, bool callsignAtStart, bool callsignAtEnd, bool callsignAtLatch);
6161
void setFMAckParams(const std::string& rfAck, unsigned int ackSpeed, unsigned int ackFrequency, unsigned int ackMinTime, unsigned int ackDelay, float ackLevel);
62-
void setFMMiscParams(unsigned int timeout, float timeoutLevel, float ctcssFrequency, unsigned int ctcssHighThreshold, unsigned int ctcssLowThreshold, float ctcssLevel, unsigned int kerchunkTime, unsigned int hangTime, unsigned int accessMode, bool simpleMode, bool cosInvert, bool noiseSquelch, unsigned int squelchHighThreshold, unsigned int squelchLowThreshold, unsigned int rfAudioBoost, float maxDevLevel);
62+
void setFMMiscParams(unsigned int timeout, float timeoutLevel, float ctcssFrequency, unsigned int ctcssHighThreshold, unsigned int ctcssLowThreshold, float ctcssLevel, unsigned int kerchunkTime, unsigned int hangTime, unsigned int accessMode, bool linkMode, bool cosInvert, bool noiseSquelch, unsigned int squelchHighThreshold, unsigned int squelchLowThreshold, unsigned int rfAudioBoost, float maxDevLevel);
6363
void setFMExtParams(const std::string& ack, unsigned int audioBoost);
6464

6565
bool open();
@@ -268,7 +268,7 @@ class CModem {
268268
unsigned int m_fmKerchunkTime;
269269
unsigned int m_fmHangTime;
270270
unsigned int m_fmAccessMode;
271-
bool m_fmSimpleMode;
271+
bool m_fmLinkMode;
272272
bool m_fmCOSInvert;
273273
bool m_fmNoiseSquelch;
274274
unsigned int m_fmSquelchHighThreshold;

Version.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,6 @@
1919
#if !defined(VERSION_H)
2020
#define VERSION_H
2121

22-
const char* VERSION = "20210905";
22+
const char* VERSION = "20210906";
2323

2424
#endif

0 commit comments

Comments
 (0)