mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2026-06-09 09:24:59 -04:00
------------------------------------------------------------------------
r5299 | bsomervi | 2015-04-26 17:50:40 +0100 (Sun, 26 Apr 2015) | 4 lines Some HRD commands need a settling time otherwise they don't stick This seems to be limited to the Yaesu FTdx3000 "RX A" and "RX B" commands so a short delay has been added after these sort of commands. ------------------------------------------------------------------------ Merged from wsjtx branch. git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx-1.5@5300 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
This commit is contained in:
+9
-1
@@ -13,6 +13,10 @@
|
||||
namespace
|
||||
{
|
||||
char const * const HRD_transceiver_name = "Ham Radio Deluxe";
|
||||
|
||||
// some commands require a settling time, particularly "RX A" and
|
||||
// "RX B" on the Yaesu FTdx3000.
|
||||
int constexpr yaesu_delay {250};
|
||||
}
|
||||
|
||||
void HRDTransceiver::register_transceivers (TransceiverFactory::Transceivers * registry, int id)
|
||||
@@ -445,6 +449,10 @@ void HRDTransceiver::set_button (int button_index, bool checked)
|
||||
if (button_index >= 0)
|
||||
{
|
||||
send_simple_command ("set button-select " + buttons_.value (button_index) + (checked ? " 1" : " 0"));
|
||||
if (button_index == rx_A_button_ || button_index == rx_B_button_)
|
||||
{
|
||||
QThread::msleep (yaesu_delay);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -840,7 +848,7 @@ QString HRDTransceiver::send_command (QString const& cmd, bool no_debug, bool pr
|
||||
// required on some radios because commands don't get executed
|
||||
// correctly otherwise (ICOM for example)
|
||||
QThread::msleep (50);
|
||||
}
|
||||
}
|
||||
|
||||
if (!recurse && prepend_context)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user