From 340dd91c23b7c8cf5ce20667d22ac4e3c7a7e397 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Fillod=2C=20F8CFE?= Date: Sun, 23 Feb 2003 22:41:03 +0000 Subject: [PATCH] report tuning_step ANY (free form) and filter ANY caps git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@1379 7ae35d74-ebe9-4afe-98af-79ac388436b8 --- tests/dumpcaps.c | 26 ++++++++++++++++---------- 1 file changed, 16 insertions(+), 10 deletions(-) diff --git a/tests/dumpcaps.c b/tests/dumpcaps.c index 71f2a7329..0a0d1e02f 100644 --- a/tests/dumpcaps.c +++ b/tests/dumpcaps.c @@ -3,7 +3,7 @@ * This programs dumps the capabilities of a backend rig. * * - * $Id: dumpcaps.c,v 1.34 2002-11-28 22:27:11 fillods Exp $ + * $Id: dumpcaps.c,v 1.35 2003-02-23 22:41:03 fillods Exp $ * * * This program is free software; you can redistribute it and/or @@ -282,10 +282,13 @@ int dumpcaps (RIG* rig) if (status) backend_warnings++; printf("Tuning steps:"); - for (i=0; ituning_steps[i].ts; i++) { + for (i=0; ituning_steps[i]); i++) { + if (caps->tuning_steps[i].ts == RIG_TS_ANY) + strcpy(freqbuf, "ANY"); + else sprintf_freq(freqbuf,caps->tuning_steps[i].ts); - sprintf_mode(prntbuf,caps->tuning_steps[i].modes); - printf("\n\t%s: \t%s", freqbuf, prntbuf); + sprintf_mode(prntbuf,caps->tuning_steps[i].modes); + printf("\n\t%s: \t%s", freqbuf, prntbuf); } if (i==0) { printf(" none! This backend might be bogus!"); @@ -297,10 +300,13 @@ int dumpcaps (RIG* rig) if (status) backend_warnings++; printf("Filters:"); - for (i=0; ifilters[i].modes; i++) { + for (i=0; ifilters[i]); i++) { + if (caps->filters[i].width == RIG_FLT_ANY) + strcpy(freqbuf, "ANY"); + else sprintf_freq(freqbuf,caps->filters[i].width); - sprintf_mode(prntbuf,caps->filters[i].modes); - printf("\n\t%s: \t%s", freqbuf, prntbuf); + sprintf_mode(prntbuf,caps->filters[i].modes); + printf("\n\t%s: \t%s", freqbuf, prntbuf); } if (i==0) { printf(" none! This backend might be bogus!"); @@ -482,9 +488,9 @@ int ts_sanity_check(const struct tuning_step_list tuning_step[]) last_ts = 0; last_modes = RIG_MODE_NONE; for (i=0; ibank_num) printf("BANK "); if (chan->ant) printf("ANT "); if (chan->freq) printf("FREQ "); - if (chan->mode) printf("MORE "); + if (chan->mode) printf("MODE "); if (chan->width) printf("WIDTH "); if (chan->tx_freq) printf("TXFREQ "); if (chan->tx_mode) printf("TXMODE ");