Fix rig->state.rx_vfo and tx_vfo for Elecraft K4

pull/1024/head
Mike Black W9MDB 2022-05-07 17:35:17 -05:00
rodzic c774a05be4
commit ddf0be7b72
2 zmienionych plików z 6 dodań i 5 usunięć

Wyświetl plik

@ -522,11 +522,12 @@ int elecraft_get_vfo_tq(RIG *rig, vfo_t *vfo)
rig_debug(RIG_DEBUG_ERR, "%s: unable to parse TQ '%s'\n", __func__, splitbuf);
}
*vfo = RIG_VFO_A;
*vfo = rig->state.tx_vfo = RIG_VFO_A;
if (tq && ft == 1) { *vfo = RIG_VFO_B; }
if (tq && ft == 1) { *vfo = rig->state.tx_vfo = RIG_VFO_B; }
else if (tq && ft == 0) { *vfo = rig->state.tx_vfo = RIG_VFO_A; }
if (!tq && fr == 1) { *vfo = RIG_VFO_B; }
if (!tq && fr == 1) { *vfo = rig->state.rx_vfo = rig->state.tx_vfo = RIG_VFO_B; }
RETURNFUNC2(RIG_OK);
}

Wyświetl plik

@ -488,7 +488,7 @@ const struct rig_caps k4_caps =
RIG_MODEL(RIG_MODEL_K4),
.model_name = "K4",
.mfg_name = "Elecraft",
.version = BACKEND_VER ".22",
.version = BACKEND_VER ".23",
.copyright = "LGPL",
.status = RIG_STATUS_STABLE,
.rig_type = RIG_TYPE_TRANSCEIVER,
@ -2753,7 +2753,7 @@ int k4_set_ptt(RIG *rig, vfo_t vfo, ptt_t ptt)
}
}
// had one report of Fake It not returning to RX freq after TX -- so a little more time for the K4
if (ptt = RIG_PTT_OFF) hl_usleep(100 * 1000);
if (ptt == RIG_PTT_OFF) hl_usleep(100 * 1000);
return RIG_OK;
}