From ea728feb03d8b91cf806296924c2fb4e965425d7 Mon Sep 17 00:00:00 2001 From: Michael Black Date: Wed, 18 Mar 2020 17:40:30 -0500 Subject: [PATCH] Add VFO to rigctl(d) 'f' command On Icom rigs, for example you will see "currVFO" if no VFO has been set Eventually we will start showing MainA/MainB SubA/SubB for rigs that have that capability --- tests/rigctl_parse.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tests/rigctl_parse.c b/tests/rigctl_parse.c index 71b1306e1..267312ad5 100644 --- a/tests/rigctl_parse.c +++ b/tests/rigctl_parse.c @@ -1894,6 +1894,13 @@ declare_proto_rig(get_freq) fprintf(fout, "%"PRIll"%c", (int64_t)freq, resp_sep); + if ((interactive && prompt) || (interactive && !prompt && ext_resp)) + { + fprintf(fout, "VFO: "); /* i.e. "Frequency" */ + } + + fprintf(fout, "%s%c", rig_strvfo(rig->state.current_vfo), resp_sep); + return status; }