kopia lustrzana https://github.com/Hamlib/Hamlib
Allow barrett to program and unprogrammed channel
https://github.com/Hamlib/Hamlib/issues/923pull/928/head
rodzic
66194804f9
commit
aaac79c55e
|
@ -202,7 +202,12 @@ int barrett950_set_freq(RIG *rig, vfo_t vfo, freq_t freq)
|
||||||
return retval;
|
return retval;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (sscanf(response, "%4d%8lf%8lf", &chan, &freq_rx, &freq_tx) != 3)
|
if (strstr(response,"E5"))
|
||||||
|
{
|
||||||
|
freq_rx = freq_tx = 0;
|
||||||
|
rig_debug(RIG_DEBUG_VERBOSE, "%s: new channel being programmed\n", __func__);
|
||||||
|
}
|
||||||
|
else if (sscanf(response, "%4d%8lf%8lf", &chan, &freq_rx, &freq_tx) != 3)
|
||||||
{
|
{
|
||||||
rig_debug(RIG_DEBUG_ERR, "%s: unable to parse chan/freq from %s\n", __func__,
|
rig_debug(RIG_DEBUG_ERR, "%s: unable to parse chan/freq from %s\n", __func__,
|
||||||
response);
|
response);
|
||||||
|
|
Ładowanie…
Reference in New Issue