From: Ramakrishnan Muthukrishnan <ram@rkrishnan.org>
Date: Fri, 14 Jan 2022 10:19:32 +0000 (+0530)
Subject: possible fix
X-Git-Url: https://git.rkrishnan.org/frontends/components?a=commitdiff_plain;h=79392bcbf78cfa8e593fe3b084dbcafd2185b839;p=pihpsdr.git

possible fix
---

diff --git a/rigctl.c b/rigctl.c
index 25304b0..66031b9 100644
--- a/rigctl.c
+++ b/rigctl.c
@@ -3465,7 +3465,7 @@ int parse_cmd(void *data) {
         if (have_rx_gain) {
           att = adc[active_receiver->adc].attenuation + 12.0;
           printf("after stage 1: %f\n", att);
-          att = round(att / 60.0) * 99.0;
+          att = round((att * (99.0 / 60.0));
           printf("after stage 2: %f\n", att);
         } else {
           att = adc[active_receiver->adc].attenuation;