From 014daefb5f7da136d73f9bd930ec9ecc4cbcdf4d Mon Sep 17 00:00:00 2001 From: giordyb Date: Sun, 16 Jan 2022 19:19:46 +0100 Subject: [PATCH 1/2] Update thd74.c fixes set_ts (the byte passed in thd74_set_freq_item() was wrong, it's 27 for normal mode and 35 for fine mode). Also if a step lower than 5000 is entered the radio is switched into fine mode (only works on VFO B) --- rigs/kenwood/thd74.c | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/rigs/kenwood/thd74.c b/rigs/kenwood/thd74.c index f868950b2..f124fb181 100644 --- a/rigs/kenwood/thd74.c +++ b/rigs/kenwood/thd74.c @@ -638,11 +638,23 @@ static int thd74_set_ts(RIG *rig, vfo_t vfo, shortfreq_t ts) rig_debug(RIG_DEBUG_TRACE, "%s: called\n", __func__); + for (tsinx = 0; tsinx < 4; tsinx++) + { + if (thd74tuningstep_fine[tsinx] >= ts) + { + thd74_set_freq_item(rig, vfo, 33, 1); // Turn fine mode on + thd74_set_freq_item(rig, vfo, 35, tsinx); + return RIG_OK; + } + } + for (tsinx = 0; tsinx < 10; tsinx++) { + if (thd74tuningstep[tsinx] >= ts) { - thd74_set_freq_item(rig, vfo, 16, tsinx); + thd74_set_freq_item(rig, vfo, 33, 0); //Turn fine mode off + thd74_set_freq_item(rig, vfo, 27, tsinx); return RIG_OK; } } From dcc176a2635f24a6f936fb90f255768fb39ee264 Mon Sep 17 00:00:00 2001 From: giordyb Date: Sun, 16 Jan 2022 19:36:54 +0100 Subject: [PATCH 2/2] Update thd74.c version bump --- rigs/kenwood/thd74.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rigs/kenwood/thd74.c b/rigs/kenwood/thd74.c index f124fb181..a71596088 100644 --- a/rigs/kenwood/thd74.c +++ b/rigs/kenwood/thd74.c @@ -1655,7 +1655,7 @@ const struct rig_caps thd74_caps = RIG_MODEL(RIG_MODEL_THD74), .model_name = "TH-D74", .mfg_name = "Kenwood", - .version = BACKEND_VER ".2", + .version = BACKEND_VER ".3", .copyright = "LGPL", .status = RIG_STATUS_STABLE, .rig_type = RIG_TYPE_HANDHELD | RIG_FLAG_APRS | RIG_FLAG_TNC | RIG_FLAG_DXCLUSTER,