From 3e6b9da1ebec41f9fd92045f603dfa7d33c34d88 Mon Sep 17 00:00:00 2001 From: Mike Black W9MDB Date: Tue, 4 Jun 2024 15:50:08 -0500 Subject: [PATCH] Better behavior for Flex smartsdr behavior --- rigs/flexradio/smartsdr.c | 11 +++++++++-- rigs/flexradio/smartsdr_caps.h | 4 ++-- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/rigs/flexradio/smartsdr.c b/rigs/flexradio/smartsdr.c index fb8a06ddc..92474c8b4 100644 --- a/rigs/flexradio/smartsdr.c +++ b/rigs/flexradio/smartsdr.c @@ -370,6 +370,10 @@ int smartsdr_set_freq(RIG *rig, vfo_t vfo, freq_t freq) smartsdr_transaction(rig, cmd); rig_debug(RIG_DEBUG_VERBOSE, "%s: set_freq answer: %s", __func__, buf); rig_set_cache_freq(rig, vfo, freq); + if (vfo == RIG_VFO_A) + priv->freqA = freq; + else + priv->freqB = freq; RETURNFUNC(RIG_OK); } @@ -448,8 +452,10 @@ int smartsdr_get_freq(RIG *rig, vfo_t vfo, freq_t *freq) //char cmd[64]; ENTERFUNC; //int retval = -RIG_EINTERNAL; + // doing the sub slice causes audio problems //sprintf(cmd, "sub slice %d", priv->slicenum); - smartsdr_transaction(rig, NULL); + //sprintf(cmd, "info"); + //smartsdr_transaction(rig, cmd); if (vfo == RIG_VFO_A) *freq = priv->freqA; else @@ -480,6 +486,7 @@ int smartsdr_set_ptt(RIG *rig, vfo_t vfo, ptt_t ptt) smartsdr_transaction(rig, cmd); sprintf(cmd, "xmit %d", ptt); smartsdr_transaction(rig, cmd); + priv->ptt = ptt; RETURNFUNC(RIG_OK); } @@ -487,7 +494,7 @@ int smartsdr_get_ptt(RIG *rig, vfo_t vfo, ptt_t *ptt) { struct smartsdr_priv_data *priv = (struct smartsdr_priv_data *)STATE(rig)->priv; ENTERFUNC; - smartsdr_transaction(rig, NULL); +// smartsdr_transaction(rig, NULL); *ptt = priv->ptt; RETURNFUNC(RIG_OK); } diff --git a/rigs/flexradio/smartsdr_caps.h b/rigs/flexradio/smartsdr_caps.h index 0d10b17f9..45c8de110 100644 --- a/rigs/flexradio/smartsdr_caps.h +++ b/rigs/flexradio/smartsdr_caps.h @@ -1,7 +1,7 @@ .mfg_name = "Flex-radio", - .version = "20240529.0", + .version = "20240604.0", .copyright = "LGPL", - .status = RIG_STATUS_ALPHA, + .status = RIG_STATUS_BETA, .rig_type = RIG_TYPE_TRANSCEIVER, .targetable_vfo = 0, .ptt_type = RIG_PTT_RIG,