Small logic and type fixes.

This commit is contained in:
Jonathan Naylor
2019-03-24 12:07:09 +00:00
parent 0e048e0115
commit 48136da4e7
2 changed files with 1 additions and 3 deletions

View File

@@ -995,8 +995,6 @@ int CDMRGateway::run()
unsigned int slotNo = 0U;
ret = m_repeater->readInterrupt(slotNo);
if (ret) {
if (m_xlxNetwork != NULL && status[slotNo] == DMRGWS_XLXREFLECTOR)
m_xlxNetwork->writeInterrupt(slotNo);
if (m_dmrNetwork1 != NULL && status[slotNo] == DMRGWS_DMRNETWORK1)
m_dmrNetwork1->writeInterrupt(slotNo);
if (m_dmrNetwork2 != NULL && status[slotNo] == DMRGWS_DMRNETWORK2)

View File

@@ -289,7 +289,7 @@ bool CDMRNetwork::writeInterrupt(unsigned int slotNo)
::sprintf((char*)buffer + 11U, ":%u", slotNo);
return write(buffer, ::strlen((char*)buffer));
return write(buffer, 13U);
}
bool CDMRNetwork::isConnected() const