mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2025-03-26 14:08:40 -04:00
Make HRDTransceiver more robust (seems to reduce the number of program crashes).
This commit is contained in:
parent
8cdbea788f
commit
14452cd054
@ -18,7 +18,7 @@ namespace
|
|||||||
|
|
||||||
// some commands require a settling time, particularly "RX A" and
|
// some commands require a settling time, particularly "RX A" and
|
||||||
// "RX B" on the Yaesu FTdx3000.
|
// "RX B" on the Yaesu FTdx3000.
|
||||||
int constexpr yaesu_delay {250};
|
int constexpr yaesu_delay {350};
|
||||||
}
|
}
|
||||||
|
|
||||||
#include "moc_HRDTransceiver.cpp"
|
#include "moc_HRDTransceiver.cpp"
|
||||||
@ -1124,7 +1124,7 @@ QByteArray HRDTransceiver::read_reply (QString const& cmd)
|
|||||||
{
|
{
|
||||||
// waitForReadReady appears to be occasionally unreliable on Windows
|
// waitForReadReady appears to be occasionally unreliable on Windows
|
||||||
// timing out when data is waiting so retry a few times
|
// timing out when data is waiting so retry a few times
|
||||||
unsigned retries {3};
|
unsigned retries {30};
|
||||||
bool replied {false};
|
bool replied {false};
|
||||||
while (!replied && retries--)
|
while (!replied && retries--)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user