kopia lustrzana https://github.com/Hamlib/Hamlib
printcaps renamed to dumpcaps
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@185 7ae35d74-ebe9-4afe-98af-79ac388436b8Hamlib-1.1.0
rodzic
38181c9784
commit
1d1692c0c5
|
@ -1,9 +1,9 @@
|
|||
/*
|
||||
* printcaps.c - Copyright (C) 2000 Stephane Fillod
|
||||
* dumpcaps.c - Copyright (C) 2000 Stephane Fillod
|
||||
* This programs dumps the capabilities of a backend rig.
|
||||
*
|
||||
*
|
||||
* $Id: printcaps.c,v 1.1 2000-10-01 12:52:17 f4cfe Exp $
|
||||
* $Id: dumpcaps.c,v 1.1 2000-10-08 21:21:31 f4cfe Exp $
|
||||
*
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or
|
||||
|
@ -27,7 +27,7 @@
|
|||
#include <string.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
#include <rig.h>
|
||||
#include <hamlib/rig.h>
|
||||
|
||||
|
||||
static char *decode_modes(rmode_t modes);
|
||||
|
@ -43,6 +43,12 @@ int main (int argc, char *argv[])
|
|||
exit(1);
|
||||
}
|
||||
|
||||
status = rig_load_backend("icom");
|
||||
if (status != RIG_OK ) {
|
||||
printf("rig_load_backend: error = %s \n", rigerror(status));
|
||||
exit(3);
|
||||
}
|
||||
|
||||
caps = rig_get_caps(atoi(argv[1]));
|
||||
if (!caps) {
|
||||
fprintf(stderr,"Unknown rig num: %d\n",atoi(argv[1]));
|
||||
|
@ -68,6 +74,9 @@ int main (int argc, char *argv[])
|
|||
case RIG_STATUS_STABLE:
|
||||
printf("Stable\n");
|
||||
break;
|
||||
case RIG_STATUS_BUGGY:
|
||||
printf("Buggy\n");
|
||||
break;
|
||||
case RIG_STATUS_NEW:
|
||||
printf("New\n");
|
||||
break;
|
Ładowanie…
Reference in New Issue