Skip to content

Commit 6486fce

Browse files
committed
Fix dependy on hamlib
The fix for 'SegV on mising RIGPORT' introduced some errors if hamlib support was not compiled in.
1 parent a7ac60f commit 6486fce

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/sendqrg.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,10 @@
3232

3333
void send_bandswitch(int trxqrg);
3434

35+
#ifdef HAVE_LIBHAMLIB //code for Hamlib interface
3536
static int parse_rigconf();
3637
static void debug_tlf_rig();
38+
#endif
3739

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

226-
#endif // end code for Hamlib interface
227-
228228
static void debug_tlf_rig() {
229229
extern RIG *my_rig;
230230
freq_t rigfreq;
@@ -267,3 +267,5 @@ static void debug_tlf_rig() {
267267
sleep(10);
268268

269269
}
270+
271+
#endif // end code for Hamlib interface

0 commit comments

Comments
 (0)