Removing busyTimer, no needed for YSF2XX

This commit is contained in:
Andy CA6JAU
2019-02-04 10:43:21 -03:00
parent c063b2455f
commit 09f2c80578
6 changed files with 0 additions and 66 deletions
-19
View File
@@ -70,8 +70,6 @@ m_start(0U),
m_search(),
m_category(),
m_makeUpper(makeUpper),
m_busy(false),
m_busyTimer(3000U, 1U),
m_bufferTX(10000U, "YSF Wires-X TX Buffer")
{
assert(network != NULL);
@@ -353,9 +351,6 @@ WX_STATUS CWiresX::processConnect(const unsigned char* source, const unsigned ch
{
//::LogDebug("Received Connect to %6.6s from %10.10s", data, source);
m_busy = true;
m_busyTimer.start();
std::string id = std::string((char*)data, 6U);
m_dstID = atoi(id.c_str());
@@ -370,9 +365,6 @@ WX_STATUS CWiresX::processConnect(const unsigned char* source, const unsigned ch
void CWiresX::processConnect(int dstID)
{
m_busy = true;
m_busyTimer.start();
m_dstID = dstID;
m_status = WXSI_CONNECT;
@@ -432,12 +424,6 @@ void CWiresX::clock(unsigned int ms)
}
m_txWatch.start();
}
m_busyTimer.clock(ms);
if (m_busyTimer.isRunning() && m_busyTimer.hasExpired()) {
m_busy = false;
m_busyTimer.stop();
}
}
void CWiresX::createReply(const unsigned char* data, unsigned int length)
@@ -1076,8 +1062,3 @@ void CWiresX::sendCategoryReply()
m_seqNo++;
}
bool CWiresX::isBusy() const
{
return m_busy;
}