[Hamlib-commits] Hamlib -- Ham radio control libraries branch master updated. 6fbf33e8edb4448e122df
Library to control radio transceivers and receivers
Brought to you by:
n0nb
From: Michael B. <mdb...@us...> - 2021-01-10 05:18:18
|
This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project "Hamlib -- Ham radio control libraries". The branch, master has been updated via 6fbf33e8edb4448e122df67d5379bf48be124dd1 (commit) from 6e8b90aeec93ae249acc77a6ca72acb5808231ea (commit) Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below. - Log ----------------------------------------------------------------- commit 6fbf33e8edb4448e122df67d5379bf48be124dd1 Author: Michael Black W9MDB <mdb...@ya...> Date: Sat Jan 9 23:17:37 2021 -0600 Undo changes on testrig.c diff --git a/tests/testrig.c b/tests/testrig.c index f6c526c1..b7b9ab97 100644 --- a/tests/testrig.c +++ b/tests/testrig.c @@ -15,7 +15,7 @@ # include "config.h" #endif -#define SERIAL_PORT "/dev/pts/3" +#define SERIAL_PORT "/dev/ttyUSB0" int main(int argc, char *argv[]) @@ -36,7 +36,7 @@ int main(int argc, char *argv[]) printf("testrig: Hello, I am your main() !\n"); /* Turn off backend debugging output */ - rig_set_debug_level(RIG_DEBUG_ERR); + rig_set_debug_level(RIG_DEBUG_NONE); /* * allocate memory, setup & open port @@ -66,13 +66,10 @@ int main(int argc, char *argv[]) if (!my_rig) { - fprintf(stderr, "Rig Not OK!!!\n"); - //fprintf(stderr, "Unknown rig num: %d\n", myrig_model); - //fprintf(stderr, "Please check riglist.h\n"); + fprintf(stderr, "Unknown rig num: %d\n", myrig_model); + fprintf(stderr, "Please check riglist.h\n"); exit(1); /* whoops! something went wrong (mem alloc?) */ } - fprintf(stderr, "Rig OK\n"); - exit(0); strncpy(my_rig->state.rigport.pathname, SERIAL_PORT, FILPATHLEN - 1); @@ -86,7 +83,6 @@ int main(int argc, char *argv[]) printf("Port %s opened ok\n", SERIAL_PORT); - printf("Offset of vfo_list=%p\n", &my_rig->state.vfo_list); /* * Below are examples of set/get routines. * Must add checking of functionality map prior to command execution -- FS ----------------------------------------------------------------------- Summary of changes: tests/testrig.c | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) hooks/post-receive -- Hamlib -- Ham radio control libraries |