Fix FT-DX101D get_tx_vfo

FT command for DX101D returns FT0 when in split and not transmitting
New ST command is needed to determine split status instead
The old ST command has a different purpose
https://github.com/Hamlib/Hamlib/issues/293
pull/296/head
Michael Black W9MDB 2020-06-10 16:25:19 -05:00
rodzic 078d4a081b
commit 02789cb73f
2 zmienionych plików z 11 dodań i 1 usunięć

Wyświetl plik

@ -219,6 +219,9 @@ static const yaesu_newcat_commands_t valid_commands[] =
{"SM", TRUE, TRUE, TRUE, TRUE, TRUE, TRUE, TRUE, TRUE, TRUE, TRUE },
{"SQ", TRUE, TRUE, TRUE, TRUE, TRUE, TRUE, TRUE, TRUE, TRUE, TRUE },
{"SS", FALSE, FALSE, FALSE, FALSE, FALSE, FALSE, FALSE, FALSE, FALSE, TRUE },
// ST command has two meanings Step or Split Status
// If new rig is added that has ST ensure it means Split
// Otherwise modify newcat_get_tx_vfo
{"ST", TRUE, FALSE, FALSE, FALSE, FALSE, FALSE, FALSE, FALSE, FALSE, TRUE },
{"SV", TRUE, TRUE, TRUE, TRUE, TRUE, TRUE, TRUE, TRUE, TRUE, TRUE },
{"SY", FALSE, FALSE, FALSE, FALSE, FALSE, FALSE, FALSE, FALSE, FALSE, TRUE },
@ -4797,6 +4800,13 @@ int newcat_get_tx_vfo(RIG *rig, vfo_t *tx_vfo)
vfo_t vfo_mode;
char const *command = "FT";
if (rig->caps->rig_model == RIG_MODEL_FTDX101D)
{
// what other Yaeus rigs should be using this?
// The DX101D returns FT0 when in split and not transmitting
command = "ST";
}
rig_debug(RIG_DEBUG_VERBOSE, "%s called\n", __func__);
if (!newcat_valid_command(rig, command))

Wyświetl plik

@ -50,7 +50,7 @@
typedef char ncboolean;
/* shared function version */
#define NEWCAT_VER "20200526"
#define NEWCAT_VER "20200610"
/* Hopefully large enough for future use, 128 chars plus '\0' */
#define NEWCAT_DATA_LEN 129