RIG_LEVEL_STRENGTH is emulated by frontend

git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2398 7ae35d74-ebe9-4afe-98af-79ac388436b8
Hamlib-1.2.8
Stéphane Fillod, F8CFE 2008-09-21 19:36:50 +00:00
rodzic eced3359b3
commit 45cbd3b019
1 zmienionych plików z 5 dodań i 5 usunięć

Wyświetl plik

@ -2,7 +2,7 @@
* Hamlib CI-V backend - main file
* Copyright (c) 2000-2005 by Stephane Fillod
*
* $Id: icom.c,v 1.105 2008-03-29 22:54:17 aa6e Exp $
* $Id: icom.c,v 1.106 2008-09-21 19:36:50 fillods Exp $
*
* This library is free software; you can redistribute it and/or modify
* it under the terms of the GNU Library General Public License as
@ -582,7 +582,10 @@ int icom_get_mode(RIG *rig, vfo_t vfo, rmode_t *mode, pbwidth_t *width)
(rig->caps->rig_model == RIG_MODEL_OMNIVIP) )
return RIG_OK;
/* Most rigs return 1-wide, 2-normal,3-narrow For DSP rigs these are presets, can be programmed for 30 - 41 bandwidths, depending on mode Lets check for dsp filters */
/* Most rigs return 1-wide, 2-normal,3-narrow
* For DSP rigs these are presets, can be programmed for 30 - 41 bandwidths, depending on mode.
* Lets check for dsp filters
*/
if ((retval = icom_get_dsp_flt(rig, *mode)) !=0)
*width = retval;
@ -1000,9 +1003,6 @@ int icom_get_level(RIG *rig, vfo_t vfo, setting_t level, value_t *val)
case RIG_LEVEL_RAWSTR:
val->i = icom_val;
break;
case RIG_LEVEL_STRENGTH:
val->i = (int)rig_raw2val(icom_val,&rig->caps->str_cal);
break;
case RIG_LEVEL_PREAMP:
if (icom_val == 0) {
val->i = 0;