Skip to content

Commit

Permalink
https://github.com/Hamlib/Hamlib/issues/645
Browse files Browse the repository at this point in the history
  • Loading branch information
mdblack98 committed Apr 6, 2021
1 parent 0981fa6 commit 72161dd
Showing 1 changed file with 19 additions and 2 deletions.
21 changes: 19 additions & 2 deletions rigs/kenwood/ts480.c
Original file line number Diff line number Diff line change
Expand Up @@ -944,6 +944,23 @@ int malachite_init(RIG *rig)
RETURNFUNC(RIG_OK);
}

int malachite_set_freq(RIG *rig, vfo_t vfo, freq_t freq)
{
int retval;

// Malachite has bug on VHF and up where it takes two freq set to make it work
if (freq > 100e6)
{
retval = kenwood_set_freq(rig, vfo, freq + 1);

if (retval != RIG_OK) { RETURNFUNC(retval); }

retval = kenwood_set_freq(rig, vfo, freq);
}

RETURNFUNC(retval);
}

/*
* Malachite SDR rig capabilities.
* Notice that some rigs share the same functions.
Expand Down Expand Up @@ -986,12 +1003,12 @@ const struct rig_caps malachite_caps =
.rig_init = malachite_init,
.rig_open = kenwood_open,
.rig_cleanup = kenwood_cleanup,
.set_freq = kenwood_set_freq,
.set_freq = malachite_set_freq,
.get_freq = kenwood_get_freq,
.set_mode = kenwood_set_mode,
.get_mode = kenwood_get_mode,
.set_vfo = kenwood_set_vfo, // Malachite only supports VFOA
.get_vfo = kenwood_get_vfo_if,
.get_vfo = kenwood_get_vfo_if,
.set_powerstat = kenwood_set_powerstat,
.get_powerstat = kenwood_get_powerstat,
};
Expand Down

0 comments on commit 72161dd

Please sign in to comment.