From f75ad66a3388584d35f02deb73149616ef9de57e Mon Sep 17 00:00:00 2001 From: Jonathan Naylor Date: Wed, 11 Jan 2023 19:35:23 +0000 Subject: [PATCH] Handle the case where the D-Star RF timeout timer is not stopped at the end of a transmission. --- DStarControl.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/DStarControl.cpp b/DStarControl.cpp index 768006f0..be07f088 100644 --- a/DStarControl.cpp +++ b/DStarControl.cpp @@ -1,5 +1,5 @@ /* - * Copyright (C) 2015-2019,2021 Jonathan Naylor, G4KLX + * Copyright (C) 2015-2019,2021,2023 Jonathan Naylor, G4KLX * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -640,6 +640,8 @@ void CDStarControl::writeEndRF() { m_rfState = RS_RF_LISTENING; + m_rfTimeoutTimer.stop(); + if (m_netState == RS_NET_IDLE) { m_display->clearDStar(); @@ -647,8 +649,6 @@ void CDStarControl::writeEndRF() if (m_network != NULL) m_network->reset(); - } else { - m_rfTimeoutTimer.stop(); } }