Fix medium filter setting for IC-706* which insist on having

the passband data along the mode.


git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2782 7ae35d74-ebe9-4afe-98af-79ac388436b8
This commit is contained in:
Stéphane Fillod, F8CFE 2009-12-10 22:04:02 +00:00
parent bbe4c6a316
commit 12ecc526dd

View file

@ -42,14 +42,17 @@
int ic706_r2i_mode(RIG *rig, rmode_t mode, pbwidth_t width,
unsigned char *md, signed char *pd)
{
int err;
int err;
err = rig2icom_mode(rig, mode, width, md, pd);
if (err == -1)
if (err != RIG_OK)
return err;
(*pd)--;
if (*pd == -1)
*pd = PD_MEDIUM_2;
else
(*pd)--;
return RIG_OK;
}