mirror of
https://github.com/g4klx/MMDVMHost
synced 2025-12-21 23:45:49 +08:00
Delete unneeded asserts
This commit is contained in:
@@ -44,7 +44,6 @@ m_dmr(false)
|
|||||||
{
|
{
|
||||||
assert(rows > 1U);
|
assert(rows > 1U);
|
||||||
assert(cols > 15U);
|
assert(cols > 15U);
|
||||||
assert(callsign.c_str() != NULL);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
CHD44780::~CHD44780()
|
CHD44780::~CHD44780()
|
||||||
@@ -212,8 +211,6 @@ void CHD44780::clearDStar()
|
|||||||
|
|
||||||
void CHD44780::writeDMR(unsigned int slotNo, const std::string& src, bool group, const std::string& dst, const char* type)
|
void CHD44780::writeDMR(unsigned int slotNo, const std::string& src, bool group, const std::string& dst, const char* type)
|
||||||
{
|
{
|
||||||
assert(src.c_str() != NULL);
|
|
||||||
assert(dst.c_str() != NULL);
|
|
||||||
assert(type != NULL);
|
assert(type != NULL);
|
||||||
|
|
||||||
if (!m_dmr) {
|
if (!m_dmr) {
|
||||||
|
|||||||
@@ -30,7 +30,6 @@ m_serial(port, SERIAL_9600),
|
|||||||
m_brightness(brightness),
|
m_brightness(brightness),
|
||||||
m_mode(MODE_IDLE)
|
m_mode(MODE_IDLE)
|
||||||
{
|
{
|
||||||
assert(callsign.c_str() != NULL);
|
|
||||||
assert(brightness >= 0U && brightness <= 100U);
|
assert(brightness >= 0U && brightness <= 100U);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -127,8 +126,6 @@ void CNextion::clearDStar()
|
|||||||
|
|
||||||
void CNextion::writeDMR(unsigned int slotNo, const std::string& src, bool group, const std::string& dst, const char* type)
|
void CNextion::writeDMR(unsigned int slotNo, const std::string& src, bool group, const std::string& dst, const char* type)
|
||||||
{
|
{
|
||||||
assert(src.c_str() != NULL);
|
|
||||||
assert(dst.c_str() != NULL);
|
|
||||||
assert(type != NULL);
|
assert(type != NULL);
|
||||||
|
|
||||||
if (m_mode != MODE_DMR) {
|
if (m_mode != MODE_DMR) {
|
||||||
|
|||||||
@@ -51,7 +51,6 @@ m_serial(port, SERIAL_9600),
|
|||||||
m_brightness(brightness),
|
m_brightness(brightness),
|
||||||
m_mode(MODE_IDLE)
|
m_mode(MODE_IDLE)
|
||||||
{
|
{
|
||||||
assert(callsign.c_str() != NULL);
|
|
||||||
assert(brightness >= 0U && brightness <= 100U);
|
assert(brightness >= 0U && brightness <= 100U);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -190,8 +189,6 @@ void CTFTSerial::clearDStar()
|
|||||||
|
|
||||||
void CTFTSerial::writeDMR(unsigned int slotNo, const std::string& src, bool group, const std::string& dst, const char* type)
|
void CTFTSerial::writeDMR(unsigned int slotNo, const std::string& src, bool group, const std::string& dst, const char* type)
|
||||||
{
|
{
|
||||||
assert(src.c_str() != NULL);
|
|
||||||
assert(dst.c_str() != NULL);
|
|
||||||
assert(type != NULL);
|
assert(type != NULL);
|
||||||
|
|
||||||
if (m_mode != MODE_DMR) {
|
if (m_mode != MODE_DMR) {
|
||||||
|
|||||||
Reference in New Issue
Block a user