From f4edf08f612be46f51df88d26d15fb3fd11be65b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Fillod=2C=20F8CFE?= Date: Wed, 8 Aug 2001 06:08:33 +0000 Subject: [PATCH] reflect changes of caps->rig_type git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@617 7ae35d74-ebe9-4afe-98af-79ac388436b8 --- tests/dumpcaps.c | 4 ++-- tests/listrigs.c | 4 ++-- tests/rigmatrix.c | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/tests/dumpcaps.c b/tests/dumpcaps.c index 6051ffe88..fa76f6ded 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.27 2001-07-01 11:46:17 f4cfe Exp $ + * $Id: dumpcaps.c,v 1.28 2001-08-08 06:08:33 f4cfe Exp $ * * * This program is free software; you can redistribute it and/or @@ -106,7 +106,7 @@ int main (int argc, char *argv[]) backend_warnings++; } printf("Rig type:\t"); - switch (caps->rig_type) { + switch (caps->rig_type & RIG_TYPE_MASK) { case RIG_TYPE_TRANSCEIVER: printf("Transceiver\n"); break; diff --git a/tests/listrigs.c b/tests/listrigs.c index 6c6901e94..25fecae84 100644 --- a/tests/listrigs.c +++ b/tests/listrigs.c @@ -3,7 +3,7 @@ * This programs list all the available the rig capabilities. * * - * $Id: listrigs.c,v 1.9 2001-06-04 21:17:53 f4cfe Exp $ + * $Id: listrigs.c,v 1.10 2001-08-08 06:08:33 f4cfe Exp $ * * * This program is free software; you can redistribute it and/or @@ -58,7 +58,7 @@ int print_caps_sum(const struct rig_caps *caps, void *data) default: printf("Unknown\t"); } - switch (caps->rig_type) { + switch (caps->rig_type & RIG_TYPE_MASK) { case RIG_TYPE_TRANSCEIVER: printf("Transceiver\n"); break; diff --git a/tests/rigmatrix.c b/tests/rigmatrix.c index 94b1bfda1..843f95e2e 100644 --- a/tests/rigmatrix.c +++ b/tests/rigmatrix.c @@ -4,7 +4,7 @@ * The code is rather ugly since this is only a try out. * * - * $Id: rigmatrix.c,v 1.14 2001-07-01 11:46:17 f4cfe Exp $ + * $Id: rigmatrix.c,v 1.15 2001-08-08 06:08:33 f4cfe Exp $ * * * This program is free software; you can redistribute it and/or @@ -69,7 +69,7 @@ int print_caps_sum(const struct rig_caps *caps, void *data) } printf(""); - switch (caps->rig_type) { + switch (caps->rig_type & RIG_TYPE_MASK) { case RIG_TYPE_TRANSCEIVER: printf("Transceiver"); break;