Fix FT-891 bandwidth selection -- seems newer rigs now have an "on" value now

https://github.com/Hamlib/Hamlib/issues/469
pull/474/head
Michael Black W9MDB 2020-12-18 08:52:38 -06:00
rodzic f43e190e07
commit aa58442e18
2 zmienionych plików z 4 dodań i 2 usunięć

Wyświetl plik

@ -7433,7 +7433,9 @@ int newcat_set_rx_bandwidth(RIG *rig, vfo_t vfo, rmode_t mode, pbwidth_t width)
if (is_ftdx101 || is_ft891)
{
snprintf(priv->cmd_str, sizeof(priv->cmd_str), "SH%c0%02d;", main_sub_vfo, w);
// some rigs now require the bandwidth be turned "on"
int on = is_ft891;
snprintf(priv->cmd_str, sizeof(priv->cmd_str), "SH%c%d%02d;", main_sub_vfo, on, w);
}
else
{

Wyświetl plik

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