From 0e87aff1c34a5250a634d61b7ae271c5f98e280b Mon Sep 17 00:00:00 2001 From: Ramakrishnan Muthukrishnan Date: Fri, 14 Jan 2022 15:25:59 +0530 Subject: [PATCH] last change was a mistake --- rigctl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rigctl.c b/rigctl.c index 6caa578..9b433af 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; printf("after stage 1: %f\n", att); - att = round((att * 99.0) / 60.0) + 12.0; + att = round(((att + 12.0) * 99.0) / 60.0); printf("after stage 2: %f\n", att); } else { att = adc[active_receiver->adc].attenuation; -- 2.45.2