kopia lustrzana https://github.com/Hamlib/Hamlib
Add bandwidths to get_modes
rodzic
231f9faad8
commit
5bafde9ae6
|
@ -665,7 +665,7 @@ int dumpcaps(RIG *rig, FILE *fout)
|
|||
|
||||
if (pbnorm == 0)
|
||||
{
|
||||
continue;
|
||||
// continue;
|
||||
}
|
||||
|
||||
sprintf_freq(freqbuf, sizeof(freqbuf), pbnorm);
|
||||
|
|
|
@ -2301,6 +2301,8 @@ declare_proto_rig(get_vfo_list)
|
|||
declare_proto_rig(get_modes)
|
||||
{
|
||||
static char prntbuf[1024];
|
||||
int i;
|
||||
char freqbuf[32];
|
||||
|
||||
ENTERFUNC;
|
||||
|
||||
|
@ -2313,6 +2315,28 @@ declare_proto_rig(get_modes)
|
|||
|
||||
fprintf(fout, "%s%c", prntbuf[0] ? prntbuf : "None", ext_resp);
|
||||
|
||||
fprintf(fout, "\nBandwidths:");
|
||||
|
||||
for (i = 1; i < RIG_MODE_TESTS_MAX; i <<= 1)
|
||||
{
|
||||
pbwidth_t pbnorm = rig_passband_normal(rig, i);
|
||||
|
||||
if (pbnorm == 0)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
sprintf_freq(freqbuf, sizeof(freqbuf), pbnorm);
|
||||
fprintf(fout, "\n\t%s\tNormal: %s,\t", rig_strrmode(i), freqbuf);
|
||||
|
||||
sprintf_freq(freqbuf, sizeof(freqbuf), rig_passband_narrow(rig, i));
|
||||
fprintf(fout, "Narrow: %s,\t", freqbuf);
|
||||
|
||||
sprintf_freq(freqbuf, sizeof(freqbuf), rig_passband_wide(rig, i));
|
||||
fprintf(fout, "Wide: %s", freqbuf);
|
||||
}
|
||||
|
||||
|
||||
RETURNFUNC(RIG_OK);
|
||||
}
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue