Fix FTDX101D/MP to allow new 3200/3500/4000Hz bandwidths

https://github.com/Hamlib/Hamlib/issues/1356
pull/1349/head
Mike Black W9MDB 2023-08-05 09:41:55 -05:00
rodzic 11f8a33e76
commit 93a1d90889
2 zmienionych plików z 14 dodań i 3 usunięć

Wyświetl plik

@ -8765,7 +8765,10 @@ int newcat_set_rx_bandwidth(RIG *rig, vfo_t vfo, rmode_t mode, pbwidth_t width)
else if (width <= 1700) { w = 15; }
else if (width <= 2000) { w = 16; }
else if (width <= 2400) { w = 17; }
else { w = 18; } // 3000Hz
else if (width <= 3000) { w = 18; }
else if (width <= 3200) { w = 19; }
else if (width <= 3500) { w = 20; }
else { w = 21; } // 4000Hz
break;
@ -10053,7 +10056,15 @@ int newcat_get_rx_bandwidth(RIG *rig, vfo_t vfo, rmode_t mode, pbwidth_t *width)
case 18: *width = 3000; break;
default: RETURNFUNC(-RIG_EINVAL);
case 19: *width = 3200; break;
case 20: *width = 3500; break;
case 21: *width = 4000; break;
default:
RETURNFUNC(-RIG_EINVAL);
}
break;

Wyświetl plik

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