Skip to content

Commit

Permalink
Fix dependy on hamlib
Browse files Browse the repository at this point in the history
The fix for 'SegV on mising RIGPORT' introduced some errors if
hamlib support was not compiled in.
  • Loading branch information
dl1jbe committed Nov 10, 2018
1 parent a7ac60f commit 6486fce
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/sendqrg.c
Expand Up @@ -32,8 +32,10 @@

void send_bandswitch(int trxqrg);

#ifdef HAVE_LIBHAMLIB //code for Hamlib interface
static int parse_rigconf();
static void debug_tlf_rig();
#endif

/* check if call input field contains a frequency value and switch to it.
*
Expand Down Expand Up @@ -223,8 +225,6 @@ static int parse_rigconf() {
return 0;
}

#endif // end code for Hamlib interface

static void debug_tlf_rig() {
extern RIG *my_rig;
freq_t rigfreq;
Expand Down Expand Up @@ -267,3 +267,5 @@ static void debug_tlf_rig() {
sleep(10);

}

#endif // end code for Hamlib interface

0 comments on commit 6486fce

Please sign in to comment.