From: Ramakrishnan Muthukrishnan <ram@rkrishnan.org>
Date: Sat, 28 Oct 2023 05:53:23 +0000 (+0530)
Subject: bug: once agc value is changed, it needs to take effect
X-Git-Url: https://git.rkrishnan.org/pf/content/en/seg/biz/cyclelanguage?a=commitdiff_plain;h=af22bff007dcbbc434221b1f9b814fe2e4cd7676;p=pihpsdr.git

bug: once agc value is changed, it needs to take effect
---

diff --git a/rigctl.c b/rigctl.c
index d453960..16aafea 100644
--- a/rigctl.c
+++ b/rigctl.c
@@ -1631,7 +1631,7 @@ gboolean parse_extended_cmd(char *command, CLIENT *client) {
         int agc = atoi(&command[4]);
         // update RX1 AGC
         receiver[0]->agc = agc;
-        vfo_update();
+        set_agc(receiver[0], agc);
       }
       break;
     case 'U': // ZZGU
@@ -1643,7 +1643,7 @@ gboolean parse_extended_cmd(char *command, CLIENT *client) {
         int agc = atoi(&command[4]);
         // update RX2 AGC
         receiver[1]->agc = agc;
-        vfo_update();
+	set_agc(receiver[1], agc);
       }
       break;
     default: