From 80483e93bb6f389e94872530acb4686c58b46a80 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Fillod=2C=20F8CFE?= Date: Mon, 15 Sep 2008 22:03:42 +0000 Subject: [PATCH] fix RIG_LEVEL_STRENGTH emulation git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2385 7ae35d74-ebe9-4afe-98af-79ac388436b8 --- src/settings.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/settings.c b/src/settings.c index 96216a888..5298cd063 100644 --- a/src/settings.c +++ b/src/settings.c @@ -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);