From: Joop S. <pa...@us...> - 2002-03-25 00:12:20
|
Update of /cvsroot/hamlib/hamlib/kenwood In directory usw-pr-cvs1:/tmp/cvs-serv18309/kenwood Modified Files: kenwood.c Log Message: add RIG_LEVEL_RFPOWER Index: kenwood.c =================================================================== RCS file: /cvsroot/hamlib/hamlib/kenwood/kenwood.c,v retrieving revision 1.36 retrieving revision 1.37 diff -C2 -r1.36 -r1.37 *** kenwood.c 15 Mar 2002 22:58:14 -0000 1.36 --- kenwood.c 25 Mar 2002 00:12:17 -0000 1.37 *************** *** 465,468 **** --- 465,472 ---- switch (level) { + case RIG_LEVEL_RFPOWER: + level_len = sprintf(levelbuf, "PC%03d;", kenwood_val); + break; + case RIG_LEVEL_AF: level_len = sprintf(levelbuf, "AG%03d;", kenwood_val); *************** *** 589,592 **** --- 593,599 ---- } break; + case RIG_LEVEL_RFPOWER: + return get_kenwood_level(rig, "PC;", 3, &val->f); + case RIG_LEVEL_AF: return get_kenwood_level(rig, "AG;", 3, &val->f); |