Add some missing asserts.

This commit is contained in:
Jonathan Naylor
2016-04-18 19:54:31 +01:00
parent b5a7ed83bf
commit 2e84ab888a
3 changed files with 6 additions and 0 deletions

View File

@@ -30,6 +30,7 @@ m_serial(port, SERIAL_9600),
m_brightness(brightness),
m_mode(MODE_IDLE)
{
assert(callsign != NULL);
assert(brightness >= 0U && brightness <= 100U);
}
@@ -127,6 +128,7 @@ void CNextion::clearDStar()
void CNextion::writeDMR(unsigned int slotNo, const char* src, bool group, const char* dst, const char* type)
{
assert(src != NULL);
assert(dst != NULL);
assert(type != NULL);
if (m_mode != MODE_DMR) {