From 8a5e8b7dcbd5c42e15f8d186968ebf7e136cb89e Mon Sep 17 00:00:00 2001 From: Jonathan Naylor Date: Wed, 12 Sep 2018 08:59:49 +0100 Subject: [PATCH] Simplify the connected logic. --- Common/IcomController.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Common/IcomController.cpp b/Common/IcomController.cpp index f258a1d..022e656 100644 --- a/Common/IcomController.cpp +++ b/Common/IcomController.cpp @@ -209,7 +209,7 @@ void* CIcomController::Entry() break; } - if (retryTimer.isRunning() && retryTimer.hasExpired() && connected) { + if (retryTimer.isRunning() && retryTimer.hasExpired()) { assert(storeLength > 0U); CUtils::dump(wxT("Re-Sending"), storeData, storeLength + 1U); @@ -222,7 +222,7 @@ void* CIcomController::Entry() pollTimer.start(); } - if (txSpace && !m_txData.isEmpty() && connected) { + if (txSpace && !m_txData.isEmpty()) { m_txData.getData(storeData, 1U); storeLength = storeData[0U];