Fix FTDX10 SH commands

pull/518/head
Michael Black W9MDB 2021-01-21 22:36:24 -06:00
rodzic 0058cffcc7
commit bf52ea58d7
1 zmienionych plików z 3 dodań i 3 usunięć

Wyświetl plik

@ -7854,14 +7854,14 @@ int newcat_set_rx_bandwidth(RIG *rig, vfo_t vfo, rmode_t mode, pbwidth_t width)
} /* end else */ } /* end else */
if (is_ftdx101 || is_ft891 || is_ftdx10) if (is_ftdx101 || is_ft891)
{ {
// some rigs now require the bandwidth be turned "on" // some rigs now require the bandwidth be turned "on"
int on = is_ft891; int on = is_ft891;
snprintf(priv->cmd_str, sizeof(priv->cmd_str), "SH%c%d%02d;", main_sub_vfo, on, snprintf(priv->cmd_str, sizeof(priv->cmd_str), "SH%c%d%02d;", main_sub_vfo, on,
w); w);
} }
else if (is_ft2000) else if (is_ft2000 || is_ftdx10)
{ {
snprintf(priv->cmd_str, sizeof(priv->cmd_str), "SH0%02d;", w); snprintf(priv->cmd_str, sizeof(priv->cmd_str), "SH0%02d;", w);
} }
@ -8091,7 +8091,7 @@ int newcat_get_rx_bandwidth(RIG *rig, vfo_t vfo, rmode_t mode, pbwidth_t *width)
if (sh_command_valid) if (sh_command_valid)
{ {
if (is_ft2000) if (is_ft2000 || is_ftdx10)
{ {
snprintf(priv->cmd_str, sizeof(priv->cmd_str), "%s0%c", cmd, cat_term); snprintf(priv->cmd_str, sizeof(priv->cmd_str), "%s0%c", cmd, cat_term);
} }