Remove silly asserts.

This commit is contained in:
Jonathan Naylor
2017-05-07 08:45:17 +01:00
parent 1ef304ae88
commit 16c943b551
3 changed files with 3 additions and 5 deletions

View File

@@ -630,7 +630,7 @@ bool CDMRGateway::createDMRNetwork1()
else else
LogInfo(" Local: random"); LogInfo(" Local: random");
m_dmrNetwork1 = new CDMRNetwork(address, port, local, id, password, "DMR1", debug); m_dmrNetwork1 = new CDMRNetwork(address, port, local, id, password, "DMR-1", debug);
std::string options = m_repeater->getOptions(); std::string options = m_repeater->getOptions();
if (!options.empty()) { if (!options.empty()) {
@@ -691,7 +691,7 @@ bool CDMRGateway::createDMRNetwork2()
else else
LogInfo(" Local: random"); LogInfo(" Local: random");
m_dmrNetwork2 = new CDMRNetwork(address, port, local, id, password, "DMR2", debug); m_dmrNetwork2 = new CDMRNetwork(address, port, local, id, password, "DMR-2", debug);
std::string options = m_repeater->getOptions(); std::string options = m_repeater->getOptions();
if (!options.empty()) { if (!options.empty()) {

View File

@@ -33,9 +33,7 @@ m_lc(NULL),
m_embeddedLC() m_embeddedLC()
{ {
assert(fromSlot == 1U || fromSlot == 2U); assert(fromSlot == 1U || fromSlot == 2U);
assert(fromTG < 16U);
assert(toSlot == 1U || toSlot == 2U); assert(toSlot == 1U || toSlot == 2U);
assert(toTG < 16U);
} }
CRewrite::~CRewrite() CRewrite::~CRewrite()

View File

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