Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IC-910 frequency while transmitting #275

Closed
mdblack98 opened this issue Jun 2, 2020 · 0 comments
Closed

IC-910 frequency while transmitting #275

mdblack98 opened this issue Jun 2, 2020 · 0 comments

Comments

@mdblack98
Copy link
Contributor

It appears the IC-910 ptt frequency detction needs to be changed to VFO_HAS_MAIN_SUB_A_B_ONLY and return the correct cached frequency for VFOA/VFOB/Main/Sub as appropriate
Use vfo_fixup()
int icom_get_freq(RIG *rig, vfo_t vfo, freq_t *freq)
{
struct icom_priv_data *priv;
struct rig_state *rs;
unsigned char freqbuf[MAXFRAMELEN];
unsigned char ackbuf[MAXFRAMELEN];
int freq_len, retval;
int cmd, subcmd;
int ack_len = sizeof(ackbuf);
int civ_731_mode = 0; // even these rigs have 5-byte channels

rig_debug(RIG_DEBUG_VERBOSE, "%s called for %s\n", __func__,
          rig_strvfo(vfo));
rs = &rig->state;
priv = (struct icom_priv_data *) rs->priv;

if (rig->caps->rig_model == RIG_MODEL_IC910)
{
    ptt_t ptt;
    retval = rig_get_ptt(rig, RIG_VFO_CURR, &ptt);

    if (retval != RIG_OK)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant