mirror of
https://github.com/g4klx/DMRGateway
synced 2025-12-20 21:25:37 +08:00
Small logic and type fixes.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user