From: Ramakrishnan Muthukrishnan Date: Wed, 12 Jan 2022 07:32:12 +0000 (+0530) Subject: no need to round the value being set X-Git-Url: https://git.rkrishnan.org/Site/Content/simplejson/status?a=commitdiff_plain;h=2fcd0ae74cb310b1a53c539ffcb9a2526f1381c5;p=pihpsdr.git no need to round the value being set --- diff --git a/rigctl.c b/rigctl.c index 9390919..bcf3eaf 100644 --- a/rigctl.c +++ b/rigctl.c @@ -1827,7 +1827,7 @@ gboolean parse_extended_cmd(char *command, CLIENT *client) { } else if (command[7] == ';') { command[7] = '\0'; double gain = (double)strtol(&command[4], NULL, 10); - gain = round((gain * 62.0 / 100.0) - 12.0); + gain = (gain * 62.0 / 100.0) - 12.0; set_mic_gain(gain); } break;