kopia lustrzana https://github.com/Hamlib/Hamlib
Fix FTDX101D/MP to allow new 3200/3500/4000Hz bandwidths
https://github.com/Hamlib/Hamlib/issues/1355pull/1349/head
rodzic
11f8a33e76
commit
457b09d50f
|
@ -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 <= 1700) { w = 15; }
|
||||||
else if (width <= 2000) { w = 16; }
|
else if (width <= 2000) { w = 16; }
|
||||||
else if (width <= 2400) { w = 17; }
|
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;
|
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;
|
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;
|
break;
|
||||||
|
|
|
@ -50,7 +50,7 @@
|
||||||
typedef char ncboolean;
|
typedef char ncboolean;
|
||||||
|
|
||||||
/* shared function version */
|
/* shared function version */
|
||||||
#define NEWCAT_VER "20230802"
|
#define NEWCAT_VER "20230805"
|
||||||
|
|
||||||
/* Hopefully large enough for future use, 128 chars plus '\0' */
|
/* Hopefully large enough for future use, 128 chars plus '\0' */
|
||||||
#define NEWCAT_DATA_LEN 129
|
#define NEWCAT_DATA_LEN 129
|
||||||
|
|
Ładowanie…
Reference in New Issue