added printf's to confirm rig.c (hamlib) is being called ok

git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@162 7ae35d74-ebe9-4afe-98af-79ac388436b8
Hamlib-1.1.0
Frank Singleton, VK3FCS 2000-09-29 03:29:51 +00:00
rodzic 6b46f24ce0
commit 2a3ee7f34b
1 zmienionych plików z 11 dodań i 6 usunięć

Wyświetl plik

@ -1,5 +1,5 @@
/* hamlib - Ham Radio Control Libraries /* hamlib - Ham Radio Control Libraries
Copyright (C) 2000 Stephane Fillod Copyright (C) 2000 Frank Singleton and Stephane Fillod
This file is part of the hamlib package. This file is part of the hamlib package.
Hamlib is free software; you can redistribute it and/or modify it Hamlib is free software; you can redistribute it and/or modify it
@ -40,11 +40,6 @@
* The rig_base is a variable length rig_caps* array, NULL terminated * The rig_base is a variable length rig_caps* array, NULL terminated
*/ */
/*
* removed references to xxx_caps for testing. perhaps we should
*
*
*/
#if 0 #if 0
@ -92,6 +87,8 @@ RIG *rig_init(rig_model_t rig_model)
RIG *rig; RIG *rig;
int i; int i;
printf("rig:rig_init called \n");
/* lookup for this rig */ /* lookup for this rig */
for (i=0; rig_base[i]; i++) { for (i=0; rig_base[i]; i++) {
if (rig_base[i]->rig_model == rig_model) if (rig_base[i]->rig_model == rig_model)
@ -150,6 +147,8 @@ int rig_open(RIG *rig)
{ {
int status; int status;
printf("rig:rig_open called \n");
if (!rig) if (!rig)
return -RIG_EINVAL; return -RIG_EINVAL;
@ -518,6 +517,9 @@ int rig_set_poweroff(RIG *rig)
*/ */
int rig_close(RIG *rig) int rig_close(RIG *rig)
{ {
printf("rig:rig_close called \n");
if (rig == NULL || rig->caps) if (rig == NULL || rig->caps)
return -RIG_EINVAL; return -RIG_EINVAL;
@ -540,6 +542,9 @@ int rig_close(RIG *rig)
*/ */
int rig_cleanup(RIG *rig) int rig_cleanup(RIG *rig)
{ {
printf("rig:rig_cleanup called \n");
if (rig == NULL || rig->caps) if (rig == NULL || rig->caps)
return -RIG_EINVAL; return -RIG_EINVAL;