mirror of
https://github.com/g4klx/DMRGateway.git
synced 2026-02-06 23:44:22 +01:00
Small logic and type fixes.
This commit is contained in:
parent
0e048e0115
commit
48136da4e7
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue