Fix up rigctl_parse set_vfo_opt

https://github.com/Hamlib/Hamlib/issues/259
pull/281/head
Michael Black W9MDB 2020-05-27 23:44:18 -05:00
rodzic 443bc142a7
commit b8e315a526
1 zmienionych plików z 3 dodań i 4 usunięć

Wyświetl plik

@ -244,10 +244,11 @@ static struct test_table test_list[] =
{ {
#if 0 // implement set_freq VFO later if it can be detected #if 0 // implement set_freq VFO later if it can be detected
// { 'F', "set_freq", ACTION(set_freq), ARG_IN1 | ARG_OUT1, "Frequency" }, // { 'F', "set_freq", ACTION(set_freq), ARG_IN1 | ARG_OUT1, "Frequency" },
{ 'f', "get_freq", ACTION(get_freq), ARG_OUT, "Frequency", "VFO" },
#else #else
{ 'F', "set_freq", ACTION(set_freq), ARG_IN1, "Frequency" }, { 'F', "set_freq", ACTION(set_freq), ARG_IN1, "Frequency" },
#endif #endif
{ 'f', "get_freq", ACTION(get_freq), ARG_OUT, "Frequency", "VFO" }, { 'f', "get_freq", ACTION(get_freq), ARG_OUT, "Frequency" },
{ 'M', "set_mode", ACTION(set_mode), ARG_IN, "Mode", "Passband" }, { 'M', "set_mode", ACTION(set_mode), ARG_IN, "Mode", "Passband" },
{ 'm', "get_mode", ACTION(get_mode), ARG_OUT, "Mode", "Passband" }, { 'm', "get_mode", ACTION(get_mode), ARG_OUT, "Mode", "Passband" },
{ 'I', "set_split_freq", ACTION(set_split_freq), ARG_IN, "TX Frequency" }, { 'I', "set_split_freq", ACTION(set_split_freq), ARG_IN, "TX Frequency" },
@ -4527,9 +4528,7 @@ declare_proto_rig(set_vfo_opt)
rig_debug(RIG_DEBUG_VERBOSE, "%s: called\n", __func__); rig_debug(RIG_DEBUG_VERBOSE, "%s: called\n", __func__);
CHKSCN1ARG(sscanf(arg1, "%d", &opt)); CHKSCN1ARG(sscanf(arg1, "%d", &opt));
*vfo_opt = rig->state.vfo_opt = opt; *vfo_opt = rig->state.vfo_opt = opt;
sprintf(cmdbuf, "( %d\n", opt); return rig_set_vfo_opt(rig, opt);
write_block(&rig->state.rigport, cmdbuf, strlen(cmdbuf));
return RIG_OK;
} }
/* '0xf1'--halt rigctld daemon */ /* '0xf1'--halt rigctld daemon */