kopia lustrzana https://github.com/Hamlib/Hamlib
Fix Malachite SDR to return 0 freq when VFOB is requested -- rig does not have VFOB
https://github.com/Hamlib/Hamlib/issues/1070pull/1073/head
rodzic
521d3f6ac3
commit
fdbdb388e2
|
@ -1953,6 +1953,12 @@ int kenwood_get_freq(RIG *rig, vfo_t vfo, freq_t *freq)
|
||||||
rig_debug(RIG_DEBUG_ERR, "%s: unsupported VFO %s\n", __func__, rig_strvfo(vfo));
|
rig_debug(RIG_DEBUG_ERR, "%s: unsupported VFO %s\n", __func__, rig_strvfo(vfo));
|
||||||
RETURNFUNC(-RIG_EINVAL);
|
RETURNFUNC(-RIG_EINVAL);
|
||||||
}
|
}
|
||||||
|
if (rig->caps->rig_model == RIG_MODEL_MALACHITE)
|
||||||
|
{
|
||||||
|
// Malachite does not have VFOB so we'll just return VFOA
|
||||||
|
*freq = 0;
|
||||||
|
RETURNFUNC(RIG_OK);
|
||||||
|
}
|
||||||
|
|
||||||
SNPRINTF(cmdbuf, sizeof(cmdbuf), "F%c", vfo_letter);
|
SNPRINTF(cmdbuf, sizeof(cmdbuf), "F%c", vfo_letter);
|
||||||
|
|
||||||
|
|
|
@ -28,7 +28,7 @@
|
||||||
#include "token.h"
|
#include "token.h"
|
||||||
#include "misc.h"
|
#include "misc.h"
|
||||||
|
|
||||||
#define BACKEND_VER "20220602"
|
#define BACKEND_VER "20220619"
|
||||||
|
|
||||||
#define EOM_KEN ';'
|
#define EOM_KEN ';'
|
||||||
#define EOM_TH '\r'
|
#define EOM_TH '\r'
|
||||||
|
|
|
@ -1847,7 +1847,7 @@ const struct rig_caps malachite_caps =
|
||||||
RIG_MODEL(RIG_MODEL_MALACHITE),
|
RIG_MODEL(RIG_MODEL_MALACHITE),
|
||||||
.model_name = "DSP",
|
.model_name = "DSP",
|
||||||
.mfg_name = "Malachite",
|
.mfg_name = "Malachite",
|
||||||
.version = BACKEND_VER ".0",
|
.version = BACKEND_VER ".1",
|
||||||
.copyright = "LGPL",
|
.copyright = "LGPL",
|
||||||
.status = RIG_STATUS_STABLE,
|
.status = RIG_STATUS_STABLE,
|
||||||
.rig_type = RIG_TYPE_RECEIVER,
|
.rig_type = RIG_TYPE_RECEIVER,
|
||||||
|
|
Ładowanie…
Reference in New Issue