fix RIG_LEVEL_STRENGTH emulation

git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2385 7ae35d74-ebe9-4afe-98af-79ac388436b8
Hamlib-1.2.8
Stéphane Fillod, F8CFE 2008-09-15 22:03:42 +00:00
rodzic 4e60702f9e
commit 80483e93bb
1 zmienionych plików z 2 dodań i 3 usunięć

Wyświetl plik

@ -16,7 +16,7 @@
* Hamlib Interface - func/level/parm
* Copyright (c) 2000-2008 by Stephane Fillod
*
* $Id: settings.c,v 1.11 2008-05-04 14:11:43 fillods Exp $
* $Id: settings.c,v 1.12 2008-09-15 22:03:42 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
@ -146,9 +146,8 @@ int HAMLIB_API rig_get_level(RIG *rig, vfo_t vfo, setting_t level, value_t *val)
* Special case(frontend emulation): calibrated S-meter reading
*/
if (level == RIG_LEVEL_STRENGTH &&
(caps->has_get_level & RIG_LEVEL_STRENGTH) &&
(caps->has_get_level & RIG_LEVEL_STRENGTH) == 0 &&
rig_has_get_level(rig,RIG_LEVEL_RAWSTR)) {
value_t rawstr;
retcode = rig_get_level(rig, vfo, RIG_LEVEL_RAWSTR, &rawstr);