From 22a0167a81a7f84dfdf82486f2569016669b199e Mon Sep 17 00:00:00 2001 From: "Terry Embry, KJ4EED" Date: Sat, 13 Dec 2008 22:51:36 +0000 Subject: [PATCH] Changed vfo to txvfo = RIG_VFO_TX in set_split_freq(), get_split_freq() Changed vfo to txvfo = RIG_VFO_TX in set_split_mode(), get_split_mode() RIG_VFO_TX is "split or uplink vfo"; This may/will break code, maybe we want a vfo option instead? Terry KJ4EED git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2499 7ae35d74-ebe9-4afe-98af-79ac388436b8 --- tests/rigctl_parse.c | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/tests/rigctl_parse.c b/tests/rigctl_parse.c index 1cb933660..296cfae6b 100644 --- a/tests/rigctl_parse.c +++ b/tests/rigctl_parse.c @@ -5,7 +5,7 @@ * It takes commands in interactive mode as well as * from command line options. * - * $Id: rigctl_parse.c,v 1.10 2008-12-10 08:37:35 fillods Exp $ + * $Id: rigctl_parse.c,v 1.11 2008-12-13 22:51:36 mrtembry Exp $ * * * This program is free software; you can redistribute it and/or @@ -930,9 +930,10 @@ declare_proto_rig(get_dcs_sql) declare_proto_rig(set_split_freq) { freq_t txfreq; + vfo_t txvfo = RIG_VFO_TX; sscanf(arg1, "%"SCNfreq, &txfreq); - return rig_set_split_freq(rig, vfo, txfreq); + return rig_set_split_freq(rig, txvfo, txfreq); } /* 'i' */ @@ -940,8 +941,9 @@ declare_proto_rig(get_split_freq) { int status; freq_t txfreq; - - status = rig_get_split_freq(rig, vfo, &txfreq); + vfo_t txvfo = RIG_VFO_TX; + + status = rig_get_split_freq(rig, txvfo, &txfreq); if (status != RIG_OK) return status; if (interactive && prompt) @@ -956,6 +958,7 @@ declare_proto_rig(set_split_mode) { rmode_t mode; int width; + vfo_t txvfo = RIG_VFO_TX; #if 0 if (!strcmp(arg1, "?")) { @@ -967,7 +970,7 @@ declare_proto_rig(set_split_mode) #endif mode = rig_parse_mode(arg1); sscanf(arg2, "%d", &width); - return rig_set_split_mode(rig, vfo, mode, (pbwidth_t) width); + return rig_set_split_mode(rig, txvfo, mode, (pbwidth_t) width); } /* 'x' */ @@ -976,8 +979,9 @@ declare_proto_rig(get_split_mode) int status; rmode_t mode; pbwidth_t width; + vfo_t txvfo = RIG_VFO_TX; - status = rig_get_split_mode(rig, vfo, &mode, &width); + status = rig_get_split_mode(rig, txvfo, &mode, &width); if (status != RIG_OK) return status; if (interactive && prompt)