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
Hamlib-1.2.13
Nate Bargmann, N0NB 2011-01-21 12:22:13 +00:00
rodzic 96c0a1c14a
commit 749ababe13
1 zmienionych plików z 8 dodań i 0 usunięć

Wyświetl plik

@ -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;
}