From: Ramakrishnan Muthukrishnan <ram@rkrishnan.org>
Date: Sat, 2 Dec 2023 15:02:06 +0000 (+0530)
Subject: if we change NR value, then update_noise() needs to be called
X-Git-Url: https://git.rkrishnan.org/simplejson/components/frontends/flags/%3C?a=commitdiff_plain;h=b8481b22ec5df33a79b1170dfb408fa7da1727cd;p=pihpsdr.git

if we change NR value, then update_noise() needs to be called
---

diff --git a/vfo.c b/vfo.c
index bdbbaad..976ee82 100644
--- a/vfo.c
+++ b/vfo.c
@@ -1262,7 +1262,7 @@ void vfo_update(void) {
         // some space
 	int which_nb = get_nb(active_receiver);
 	if (which_nb < 0) {
-	    g_print("RIGCTL: ERROR in NR determination used for display\n");
+	    g_print("RIGCTL: ERROR in NB determination used for display\n");
 	    which_nb = 0;
 	}
 	draw_item(cr, SCR_NB, which_nb);
@@ -1274,6 +1274,7 @@ void vfo_update(void) {
 	    g_print("RIGCTL: ERROR in NR determination used for display\n");
 	    which_nr = 0;
 	}
+	update_noise();
 	draw_item(cr, SCR_NR, which_nr);
 
 	// anf