kopia lustrzana https://github.com/Hamlib/Hamlib
minor cleanups
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@657 7ae35d74-ebe9-4afe-98af-79ac388436b8Hamlib-1.1.2
rodzic
0a6d0a9cc7
commit
ba1fac643c
|
@ -3,7 +3,7 @@
|
|||
* This programs dumps the capabilities of a backend rig.
|
||||
*
|
||||
*
|
||||
* $Id: dumpcaps.c,v 1.28 2001-08-08 06:08:33 f4cfe Exp $
|
||||
* $Id: dumpcaps.c,v 1.29 2001-09-20 21:21:14 f4cfe Exp $
|
||||
*
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or
|
||||
|
@ -49,22 +49,6 @@ int main (int argc, char *argv[])
|
|||
exit(1);
|
||||
}
|
||||
|
||||
#if 0
|
||||
status = rig_load_backend("icom");
|
||||
status |= rig_load_backend("ft747");
|
||||
status |= rig_load_backend("ft847");
|
||||
status |= rig_load_backend("kenwood");
|
||||
status |= rig_load_backend("aor");
|
||||
status |= rig_load_backend("pcr");
|
||||
rig_load_backend("winradio"); /* may not be compiled ... */
|
||||
rig_load_backend("dummy");
|
||||
|
||||
if (status != RIG_OK ) {
|
||||
printf("rig_load_backend: error = %s \n", rigerror(status));
|
||||
exit(3);
|
||||
}
|
||||
#endif
|
||||
|
||||
rig_model = atoi(argv[1]);
|
||||
|
||||
rig_check_backend(rig_model);
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
* This programs dumps the mmeory contents of a rig.
|
||||
*
|
||||
*
|
||||
* $Id: dumpmem.c,v 1.5 2001-07-25 21:59:55 f4cfe Exp $
|
||||
* $Id: dumpmem.c,v 1.6 2001-09-20 21:21:14 f4cfe Exp $
|
||||
*
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or
|
||||
|
@ -45,22 +45,6 @@ int main (int argc, char *argv[])
|
|||
exit(1);
|
||||
}
|
||||
|
||||
#if 0
|
||||
status = rig_load_backend("icom");
|
||||
status |= rig_load_backend("ft747");
|
||||
status |= rig_load_backend("ft847");
|
||||
status |= rig_load_backend("kenwood");
|
||||
status |= rig_load_backend("aor");
|
||||
status |= rig_load_backend("pcr");
|
||||
rig_load_backend("winradio"); /* may not be compiled in ... */
|
||||
rig_load_backend("dummy");
|
||||
|
||||
if (status != RIG_OK ) {
|
||||
printf("rig_load_backend: error = %s \n", rigerror(status));
|
||||
exit(3);
|
||||
}
|
||||
#endif
|
||||
|
||||
my_rig = rig_init(atoi(argv[1]));
|
||||
|
||||
if (!my_rig) {
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
* This programs list all the available the rig capabilities.
|
||||
*
|
||||
*
|
||||
* $Id: listrigs.c,v 1.10 2001-08-08 06:08:33 f4cfe Exp $
|
||||
* $Id: listrigs.c,v 1.11 2001-09-20 21:21:14 f4cfe Exp $
|
||||
*
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or
|
||||
|
@ -97,41 +97,6 @@ int main (int argc, char *argv[])
|
|||
{
|
||||
int status;
|
||||
|
||||
#if 0
|
||||
status = rig_load_backend("icom");
|
||||
if (status != RIG_OK ) {
|
||||
printf("rig_load_backend: error = %s \n", rigerror(status));
|
||||
exit(3);
|
||||
}
|
||||
status = rig_load_backend("yaesu");
|
||||
if (status != RIG_OK ) {
|
||||
printf("rig_load_backend: yaesu error = %s \n", rigerror(status));
|
||||
exit(3);
|
||||
}
|
||||
status = rig_load_backend("kenwood");
|
||||
if (status != RIG_OK ) {
|
||||
printf("rig_load_backend: kenwood error = %s \n", rigerror(status));
|
||||
exit(3);
|
||||
}
|
||||
status = rig_load_backend("aor");
|
||||
if (status != RIG_OK ) {
|
||||
printf("rig_load_backend: aor error = %s \n", rigerror(status));
|
||||
exit(3);
|
||||
}
|
||||
status = rig_load_backend("pcr");
|
||||
if (status != RIG_OK ) {
|
||||
printf("rig_load_backend: pcr error = %s \n", rigerror(status));
|
||||
exit(3);
|
||||
}
|
||||
status = rig_load_backend("alinco");
|
||||
if (status != RIG_OK ) {
|
||||
printf("rig_load_backend: alinco error = %s \n", rigerror(status));
|
||||
exit(3);
|
||||
}
|
||||
rig_load_backend("winradio"); /* may not be compiled .. */
|
||||
rig_load_backend("dummy");
|
||||
#endif
|
||||
|
||||
rig_load_all_backends();
|
||||
|
||||
printf("Rig#\tMfg\tModel \tVers.\tStatus\tType\n");
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
* The code is rather ugly since this is only a try out.
|
||||
*
|
||||
*
|
||||
* $Id: rigmatrix.c,v 1.15 2001-08-08 06:08:33 f4cfe Exp $
|
||||
* $Id: rigmatrix.c,v 1.16 2001-09-20 21:21:14 f4cfe Exp $
|
||||
*
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or
|
||||
|
@ -316,9 +316,6 @@ int print_caps_level(const struct rig_caps *caps, void *data)
|
|||
print_yn(level & RIG_LEVEL_AGC);
|
||||
print_yn(level & RIG_LEVEL_BKINDL);
|
||||
print_yn(level & RIG_LEVEL_BALANCE);
|
||||
#if 0
|
||||
print_yn(level & RIG_LEVEL_ANN); /* deprecated */
|
||||
#endif
|
||||
|
||||
/* get only levels */
|
||||
print_yn(level & RIG_LEVEL_SWR);
|
||||
|
@ -538,41 +535,6 @@ int main (int argc, char *argv[])
|
|||
time_t gentime;
|
||||
int set_or_get;
|
||||
|
||||
#if 0
|
||||
status = rig_load_backend("icom");
|
||||
if (status != RIG_OK ) {
|
||||
printf("rig_load_backend: error = %s \n", rigerror(status));
|
||||
exit(3);
|
||||
}
|
||||
status = rig_load_backend("ft747");
|
||||
if (status != RIG_OK ) {
|
||||
printf("rig_load_backend: ft747 error = %s \n", rigerror(status));
|
||||
exit(3);
|
||||
}
|
||||
status = rig_load_backend("ft847");
|
||||
if (status != RIG_OK ) {
|
||||
printf("rig_load_backend: ft847 error = %s \n", rigerror(status));
|
||||
exit(3);
|
||||
}
|
||||
status = rig_load_backend("kenwood");
|
||||
if (status != RIG_OK ) {
|
||||
printf("rig_load_backend: kenwood error = %s \n", rigerror(status));
|
||||
exit(3);
|
||||
}
|
||||
status = rig_load_backend("aor");
|
||||
if (status != RIG_OK ) {
|
||||
printf("rig_load_backend: aor error = %s \n", rigerror(status));
|
||||
exit(3);
|
||||
}
|
||||
status = rig_load_backend("pcr");
|
||||
if (status != RIG_OK ) {
|
||||
printf("rig_load_backend: pcr error = %s \n", rigerror(status));
|
||||
exit(3);
|
||||
}
|
||||
rig_load_backend("winradio"); /* may not be compiled ... */
|
||||
rig_load_backend("dummy");
|
||||
#endif
|
||||
|
||||
rig_load_all_backends();
|
||||
|
||||
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
* like the passband info..
|
||||
*
|
||||
*
|
||||
* $Id: testcaps.c,v 1.3 2001-07-13 19:08:15 f4cfe Exp $
|
||||
* $Id: testcaps.c,v 1.4 2001-09-20 21:21:14 f4cfe Exp $
|
||||
*
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or
|
||||
|
@ -46,22 +46,6 @@ int main (int argc, char *argv[])
|
|||
exit(1);
|
||||
}
|
||||
|
||||
#if 0
|
||||
status = rig_load_backend("icom");
|
||||
status |= rig_load_backend("ft747");
|
||||
status |= rig_load_backend("ft847");
|
||||
status |= rig_load_backend("kenwood");
|
||||
status |= rig_load_backend("aor");
|
||||
status |= rig_load_backend("pcr");
|
||||
rig_load_backend("winradio"); /* may not be compiled ... */
|
||||
rig_load_backend("dummy");
|
||||
|
||||
if (status != RIG_OK ) {
|
||||
printf("rig_load_backend: error = %s \n", rigerror(status));
|
||||
exit(3);
|
||||
}
|
||||
#endif
|
||||
|
||||
pbrig = rig_init(atoi(argv[1]));
|
||||
if (!pbrig) {
|
||||
fprintf(stderr,"Unknown rig num: %d\n",atoi(argv[1]));
|
||||
|
|
|
@ -34,14 +34,6 @@ int main (int argc, char *argv[])
|
|||
* allocate memory, setup & open port
|
||||
*/
|
||||
|
||||
#if 0
|
||||
retcode = rig_load_backend("icom");
|
||||
if (retcode != RIG_OK ) {
|
||||
printf("rig_load_backend: error = %s \n", rigerror(retcode));
|
||||
exit(3);
|
||||
}
|
||||
#endif
|
||||
|
||||
my_rig = rig_init(atoi(argv[1]));
|
||||
if (!my_rig) {
|
||||
fprintf(stderr,"Unknown rig num: %d\n",atoi(argv[1]));
|
||||
|
|
Ładowanie…
Reference in New Issue