allow atten = 0 dB

git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2147 7ae35d74-ebe9-4afe-98af-79ac388436b8
Hamlib-1.2.6rc1
Martin Ewing, AA6E 2006-10-15 13:12:54 +00:00
rodzic e4fbbad792
commit 124468dad2
1 zmienionych plików z 3 dodań i 3 usunięć

Wyświetl plik

@ -2,7 +2,7 @@
* Hamlib AOR backend - main file * Hamlib AOR backend - main file
* Copyright (c) 2000-2005 by Stephane Fillod * Copyright (c) 2000-2005 by Stephane Fillod
* *
* $Id: aor.c,v 1.40 2006-10-07 21:10:11 csete Exp $ * $Id: aor.c,v 1.41 2006-10-15 13:12:54 aa6e Exp $
* *
* This library is free software; you can redistribute it and/or modify * This library is free software; you can redistribute it and/or modify
* it under the terms of the GNU Library General Public License as * it under the terms of the GNU Library General Public License as
@ -442,8 +442,8 @@ int aor_set_level(RIG *rig, vfo_t vfo, setting_t level, value_t val)
break; break;
} }
} }
/* should be catched by the front end */ /* should be caught by the front end */
if (i>=MAXDBLSTSIZ || RIG_IS_DBLST_END(rs->attenuator[i])) if ((val.i != 0) & (i>=MAXDBLSTSIZ || RIG_IS_DBLST_END(rs->attenuator[i])) )
return -RIG_EINVAL; return -RIG_EINVAL;
lvl_len = sprintf(lvlbuf, "AT%u" EOM, att); lvl_len = sprintf(lvlbuf, "AT%u" EOM, att);