From d082b735d57bb13932ae5280bbc1841ebc163f90 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Fillod=2C=20F8CFE?= Date: Wed, 7 Feb 2001 23:53:30 +0000 Subject: [PATCH] * 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-79ac388436b8 --- tests/rigctl.c | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/tests/rigctl.c b/tests/rigctl.c index ec323a7a1..8ccb31242 100644 --- a/tests/rigctl.c +++ b/tests/rigctl.c @@ -7,7 +7,7 @@ * TODO: be more generic and add command line option to run * 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 @@ -142,6 +142,10 @@ int main () retcode = rig_load_backend("icom"); 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 ) { printf("rig_load_backend: error = %s \n", rigerror(retcode)); @@ -175,6 +179,12 @@ int main () if (cmd == 'Q' || cmd == 'q') 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++) if (test_list[i].cmd == cmd) break;