From 14452cd05487d349656119eea4358cb93eb6f6fd Mon Sep 17 00:00:00 2001 From: Uwe Risse Date: Tue, 30 Aug 2022 13:42:04 +0200 Subject: [PATCH] Make HRDTransceiver more robust (seems to reduce the number of program crashes). --- Transceiver/HRDTransceiver.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Transceiver/HRDTransceiver.cpp b/Transceiver/HRDTransceiver.cpp index 54abd8081..a0cef0cea 100644 --- a/Transceiver/HRDTransceiver.cpp +++ b/Transceiver/HRDTransceiver.cpp @@ -18,7 +18,7 @@ namespace // some commands require a settling time, particularly "RX A" and // "RX B" on the Yaesu FTdx3000. - int constexpr yaesu_delay {250}; + int constexpr yaesu_delay {350}; } #include "moc_HRDTransceiver.cpp" @@ -1124,7 +1124,7 @@ QByteArray HRDTransceiver::read_reply (QString const& cmd) { // waitForReadReady appears to be occasionally unreliable on Windows // timing out when data is waiting so retry a few times - unsigned retries {3}; + unsigned retries {30}; bool replied {false}; while (!replied && retries--) {