From 3116fc77f069d17d4149b21c91aec365e0b5f8d0 Mon Sep 17 00:00:00 2001 From: Michael Black W9MDB Date: Fri, 23 Oct 2020 16:24:12 -0500 Subject: [PATCH] Fix TS890S for 70MHz band astyle kenwood.c --- rigs/kenwood/kenwood.c | 23 ++++++++++++++++++----- 1 file changed, 18 insertions(+), 5 deletions(-) diff --git a/rigs/kenwood/kenwood.c b/rigs/kenwood/kenwood.c index 11307dd1d..a8e7d79ba 100644 --- a/rigs/kenwood/kenwood.c +++ b/rigs/kenwood/kenwood.c @@ -2269,7 +2269,15 @@ static int kenwood_get_power_minmax(RIG *rig, int *power_now, int *power_min, rig->state.power_min = *power_min = 5; rig->state.power_max = *power_max = 100; - if (rig->state.current_mode == RIG_MODE_AM) { *power_max = 25; } + if (rig->state.current_mode == RIG_MODE_AM) { *power_max = 50; } + + if (rig->state.current_freq >= 70) + { + rig->state.power_max = 50; + + if (rig->state.current_mode == RIG_MODE_AM) { *power_max = 13; } + } + cmd = "PC;"; break; @@ -2299,13 +2307,18 @@ static int kenwood_get_power_minmax(RIG *rig, int *power_now, int *power_min, rig_debug(RIG_DEBUG_TRACE, "%s: retval=%d\n", __func__, retval); if (RIG_IS_TS890S) - expval = 6; - else - expval = 18; + { + expval = 6; + } + else + { + expval = 18; + } if (retval != expval) { - rig_debug(RIG_DEBUG_ERR, "%s: expected %d, got %d in '%s'\n", __func__, expval, retval, + rig_debug(RIG_DEBUG_ERR, "%s: expected %d, got %d in '%s'\n", __func__, expval, + retval, levelbuf); return -RIG_EPROTO; }