Skip to content

Commit 635a774

Browse files
committed
Merge branch 'master' into nxdn
2 parents 0e804b7 + bf1773e commit 635a774

26 files changed

+266
-755
lines changed

Conf.cpp

-8
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,6 @@ m_dmrNetworkLocal(0U),
165165
m_dmrNetworkPassword(),
166166
m_dmrNetworkOptions(),
167167
m_dmrNetworkDebug(false),
168-
m_dmrNetworkJitterEnabled(false),
169168
m_dmrNetworkJitter(300U),
170169
m_dmrNetworkSlot1(true),
171170
m_dmrNetworkSlot2(true),
@@ -596,8 +595,6 @@ bool CConf::read()
596595
m_dmrNetworkOptions = value;
597596
else if (::strcmp(key, "Debug") == 0)
598597
m_dmrNetworkDebug = ::atoi(value) == 1;
599-
else if (::strcmp(key, "JitterEnabled") == 0)
600-
m_dmrNetworkJitterEnabled = ::atoi(value) == 1;
601598
else if (::strcmp(key, "Jitter") == 0)
602599
m_dmrNetworkJitter = (unsigned int)::atoi(value);
603600
else if (::strcmp(key, "Slot1") == 0)
@@ -1269,11 +1266,6 @@ bool CConf::getDMRNetworkDebug() const
12691266
return m_dmrNetworkDebug;
12701267
}
12711268

1272-
bool CConf::getDMRNetworkJitterEnabled() const
1273-
{
1274-
return m_dmrNetworkJitterEnabled;
1275-
}
1276-
12771269
unsigned int CConf::getDMRNetworkJitter() const
12781270
{
12791271
return m_dmrNetworkJitter;

Conf.h

-2
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,6 @@ class CConf
167167
std::string getDMRNetworkPassword() const;
168168
std::string getDMRNetworkOptions() const;
169169
bool getDMRNetworkDebug() const;
170-
bool getDMRNetworkJitterEnabled() const;
171170
unsigned int getDMRNetworkJitter() const;
172171
bool getDMRNetworkSlot1() const;
173172
bool getDMRNetworkSlot2() const;
@@ -361,7 +360,6 @@ class CConf
361360
std::string m_dmrNetworkPassword;
362361
std::string m_dmrNetworkOptions;
363362
bool m_dmrNetworkDebug;
364-
bool m_dmrNetworkJitterEnabled;
365363
unsigned int m_dmrNetworkJitter;
366364
bool m_dmrNetworkSlot1;
367365
bool m_dmrNetworkSlot2;

DMRControl.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
#include <cassert>
2222
#include <algorithm>
2323

24-
CDMRControl::CDMRControl(unsigned int id, unsigned int colorCode, unsigned int callHang, bool selfOnly, bool embeddedLCOnly, bool dumpTAData, const std::vector<unsigned int>& prefixes, const std::vector<unsigned int>& blacklist, const std::vector<unsigned int>& whitelist, const std::vector<unsigned int>& slot1TGWhitelist, const std::vector<unsigned int>& slot2TGWhitelist, unsigned int timeout, CModem* modem, CDMRNetwork* network, CDisplay* display, bool duplex, CDMRLookup* lookup, CRSSIInterpolator* rssi) :
24+
CDMRControl::CDMRControl(unsigned int id, unsigned int colorCode, unsigned int callHang, bool selfOnly, bool embeddedLCOnly, bool dumpTAData, const std::vector<unsigned int>& prefixes, const std::vector<unsigned int>& blacklist, const std::vector<unsigned int>& whitelist, const std::vector<unsigned int>& slot1TGWhitelist, const std::vector<unsigned int>& slot2TGWhitelist, unsigned int timeout, CModem* modem, CDMRNetwork* network, CDisplay* display, bool duplex, CDMRLookup* lookup, CRSSIInterpolator* rssi, unsigned int jitter) :
2525
m_colorCode(colorCode),
2626
m_modem(modem),
2727
m_network(network),
@@ -38,7 +38,7 @@ m_lookup(lookup)
3838
// Load black and white lists to DMRAccessControl
3939
CDMRAccessControl::init(blacklist, whitelist, slot1TGWhitelist, slot2TGWhitelist, selfOnly, prefixes, id);
4040

41-
CDMRSlot::init(colorCode, embeddedLCOnly, dumpTAData, callHang, modem, network, display, duplex, m_lookup, rssi);
41+
CDMRSlot::init(colorCode, embeddedLCOnly, dumpTAData, callHang, modem, network, display, duplex, m_lookup, rssi, jitter);
4242
}
4343

4444
CDMRControl::~CDMRControl()

DMRControl.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131

3232
class CDMRControl {
3333
public:
34-
CDMRControl(unsigned int id, unsigned int colorCode, unsigned int callHang, bool selfOnly, bool embeddedLCOnly, bool dumpTAData, const std::vector<unsigned int>& prefixes, const std::vector<unsigned int>& blacklist, const std::vector<unsigned int>& whitelist, const std::vector<unsigned int>& slot1TGWhitelist, const std::vector<unsigned int>& slot2TGWhitelist, unsigned int timeout, CModem* modem, CDMRNetwork* network, CDisplay* display, bool duplex, CDMRLookup* lookup, CRSSIInterpolator* rssi);
34+
CDMRControl(unsigned int id, unsigned int colorCode, unsigned int callHang, bool selfOnly, bool embeddedLCOnly, bool dumpTAData, const std::vector<unsigned int>& prefixes, const std::vector<unsigned int>& blacklist, const std::vector<unsigned int>& whitelist, const std::vector<unsigned int>& slot1TGWhitelist, const std::vector<unsigned int>& slot2TGWhitelist, unsigned int timeout, CModem* modem, CDMRNetwork* network, CDisplay* display, bool duplex, CDMRLookup* lookup, CRSSIInterpolator* rssi, unsigned int jitter);
3535
~CDMRControl();
3636

3737
bool processWakeup(const unsigned char* data);

DMRData.cpp

-13
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ m_dstId(data.m_dstId),
2929
m_flco(data.m_flco),
3030
m_dataType(data.m_dataType),
3131
m_seqNo(data.m_seqNo),
32-
m_missing(data.m_missing),
3332
m_n(data.m_n),
3433
m_ber(data.m_ber),
3534
m_rssi(data.m_rssi)
@@ -46,7 +45,6 @@ m_dstId(0U),
4645
m_flco(FLCO_GROUP),
4746
m_dataType(0U),
4847
m_seqNo(0U),
49-
m_missing(false),
5048
m_n(0U),
5149
m_ber(0U),
5250
m_rssi(0U)
@@ -70,7 +68,6 @@ CDMRData& CDMRData::operator=(const CDMRData& data)
7068
m_flco = data.m_flco;
7169
m_dataType = data.m_dataType;
7270
m_seqNo = data.m_seqNo;
73-
m_missing = data.m_missing;
7471
m_n = data.m_n;
7572
m_ber = data.m_ber;
7673
m_rssi = data.m_rssi;
@@ -141,16 +138,6 @@ void CDMRData::setSeqNo(unsigned char seqNo)
141138
m_seqNo = seqNo;
142139
}
143140

144-
bool CDMRData::isMissing() const
145-
{
146-
return m_missing;
147-
}
148-
149-
void CDMRData::setMissing(bool missing)
150-
{
151-
m_missing = missing;
152-
}
153-
154141
unsigned char CDMRData::getN() const
155142
{
156143
return m_n;

DMRData.h

-4
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,6 @@ class CDMRData {
4545
unsigned char getDataType() const;
4646
void setDataType(unsigned char dataType);
4747

48-
bool isMissing() const;
49-
void setMissing(bool missing);
50-
5148
unsigned char getBER() const;
5249
void setBER(unsigned char ber);
5350

@@ -65,7 +62,6 @@ class CDMRData {
6562
FLCO m_flco;
6663
unsigned char m_dataType;
6764
unsigned char m_seqNo;
68-
bool m_missing;
6965
unsigned char m_n;
7066
unsigned char m_ber;
7167
unsigned char m_rssi;

0 commit comments

Comments
 (0)