reflect changes of caps->rig_type

git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@617 7ae35d74-ebe9-4afe-98af-79ac388436b8
Hamlib-1.1.2
Stéphane Fillod, F8CFE 2001-08-08 06:08:33 +00:00
rodzic 89f948a067
commit f4edf08f61
3 zmienionych plików z 6 dodań i 6 usunięć

Wyświetl plik

@ -3,7 +3,7 @@
* This programs dumps the capabilities of a backend rig. * 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 * This program is free software; you can redistribute it and/or
@ -106,7 +106,7 @@ int main (int argc, char *argv[])
backend_warnings++; backend_warnings++;
} }
printf("Rig type:\t"); printf("Rig type:\t");
switch (caps->rig_type) { switch (caps->rig_type & RIG_TYPE_MASK) {
case RIG_TYPE_TRANSCEIVER: case RIG_TYPE_TRANSCEIVER:
printf("Transceiver\n"); printf("Transceiver\n");
break; break;

Wyświetl plik

@ -3,7 +3,7 @@
* This programs list all the available the rig capabilities. * 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 * 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: default:
printf("Unknown\t"); printf("Unknown\t");
} }
switch (caps->rig_type) { switch (caps->rig_type & RIG_TYPE_MASK) {
case RIG_TYPE_TRANSCEIVER: case RIG_TYPE_TRANSCEIVER:
printf("Transceiver\n"); printf("Transceiver\n");
break; break;

Wyświetl plik

@ -4,7 +4,7 @@
* The code is rather ugly since this is only a try out. * 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 * 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("</TD><TD>"); printf("</TD><TD>");
switch (caps->rig_type) { switch (caps->rig_type & RIG_TYPE_MASK) {
case RIG_TYPE_TRANSCEIVER: case RIG_TYPE_TRANSCEIVER:
printf("Transceiver"); printf("Transceiver");
break; break;