kopia lustrzana https://github.com/Hamlib/Hamlib
* load more backends
* '?' menu key gives list of available commands git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@351 7ae35d74-ebe9-4afe-98af-79ac388436b8Hamlib-1.1.1
rodzic
f50b2a3310
commit
d082b735d5
|
@ -7,7 +7,7 @@
|
||||||
* TODO: be more generic and add command line option to run
|
* TODO: be more generic and add command line option to run
|
||||||
* in non-interactive mode
|
* in non-interactive mode
|
||||||
*
|
*
|
||||||
* $Id: rigctl.c,v 1.4 2000-12-05 22:04:44 f4cfe Exp $
|
* $Id: rigctl.c,v 1.5 2001-02-07 23:53:30 f4cfe Exp $
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* This program is free software; you can redistribute it and/or
|
* This program is free software; you can redistribute it and/or
|
||||||
|
@ -142,6 +142,10 @@ int main ()
|
||||||
|
|
||||||
retcode = rig_load_backend("icom");
|
retcode = rig_load_backend("icom");
|
||||||
retcode |= rig_load_backend("ft747");
|
retcode |= rig_load_backend("ft747");
|
||||||
|
retcode |= rig_load_backend("ft847");
|
||||||
|
retcode |= rig_load_backend("kenwood");
|
||||||
|
retcode |= rig_load_backend("aor");
|
||||||
|
rig_load_backend("winradio");
|
||||||
|
|
||||||
if (retcode != RIG_OK ) {
|
if (retcode != RIG_OK ) {
|
||||||
printf("rig_load_backend: error = %s \n", rigerror(retcode));
|
printf("rig_load_backend: error = %s \n", rigerror(retcode));
|
||||||
|
@ -175,6 +179,12 @@ int main ()
|
||||||
if (cmd == 'Q' || cmd == 'q')
|
if (cmd == 'Q' || cmd == 'q')
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
if (cmd == '?') {
|
||||||
|
for (i=0; test_list[i].cmd != 0x00; i++)
|
||||||
|
printf("%c: %s\n",test_list[i].cmd,test_list[i].name);
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
for (i=0; test_list[i].cmd != 0x00; i++)
|
for (i=0; test_list[i].cmd != 0x00; i++)
|
||||||
if (test_list[i].cmd == cmd)
|
if (test_list[i].cmd == cmd)
|
||||||
break;
|
break;
|
||||||
|
|
Ładowanie…
Reference in New Issue