From 749ababe13aab0b5197bcc6aa6d7e5bf3de87f2d Mon Sep 17 00:00:00 2001 From: "Nate Bargmann, N0NB" Date: Fri, 21 Jan 2011 12:22:13 +0000 Subject: [PATCH] Add missing command to set K2 to K22 in set_mode An oversight had omitted the necessary call to set the K2 to K22 extended mode before setting the filter. The function now sets K22 properly, sets the filter width, and then K20 before returning. git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@3023 7ae35d74-ebe9-4afe-98af-79ac388436b8 --- kenwood/k2.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/kenwood/k2.c b/kenwood/k2.c index e83ab610b..a6034f5c3 100644 --- a/kenwood/k2.c +++ b/kenwood/k2.c @@ -318,11 +318,19 @@ int k2_set_mode(RIG *rig, vfo_t vfo, rmode_t mode, pbwidth_t width) if (err != RIG_OK) return err; + err = kenwood_simple_cmd(rig, "K22"); + if (err != RIG_OK) + return err; + /* Set the filter slot */ err = kenwood_simple_cmd(rig, fcmd); if (err != RIG_OK) return err; + err = kenwood_simple_cmd(rig, "K20"); + if (err != RIG_OK) + return err; + return RIG_OK; }