fix set_level_agc

git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@1178 7ae35d74-ebe9-4afe-98af-79ac388436b8
Hamlib-1.1.4
Joop Stakenborg, PG4I 2002-09-15 22:35:25 +00:00
rodzic a133f2ac67
commit fe859ed462
1 zmienionych plików z 3 dodań i 2 usunięć

Wyświetl plik

@ -2,7 +2,7 @@
* Hamlib Kenwood backend - main file * Hamlib Kenwood backend - main file
* Copyright (c) 2000-2002 by Stephane Fillod * Copyright (c) 2000-2002 by Stephane Fillod
* *
* $Id: kenwood.c,v 1.47 2002-09-15 22:22:39 pa4tu Exp $ * $Id: kenwood.c,v 1.48 2002-09-15 22:35:25 pa4tu 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
@ -622,7 +622,8 @@ int kenwood_set_level(RIG *rig, vfo_t vfo, setting_t level, value_t val)
break; break;
case RIG_LEVEL_AGC: case RIG_LEVEL_AGC:
level_len = sprintf(levelbuf, "GT%03d;", kenwood_val); if (kenwood_val > 3) kenwood_val = 3; /* 0.. 255 */
level_len = sprintf(levelbuf, "GT%03d;", 84*kenwood_val);
break; break;
default: default: