]> git.rkrishnan.org Git - pihpsdr.git/commitdiff
receiver: reformat an expression for easier readability
authorRamakrishnan Muthukrishnan <ram@rkrishnan.org>
Sat, 28 Oct 2023 04:57:18 +0000 (10:27 +0530)
committerRamakrishnan Muthukrishnan <ram@rkrishnan.org>
Sat, 28 Oct 2023 05:29:43 +0000 (10:59 +0530)
receiver.c
rx_menu.c

index 790abc4473ad7f5f60c1ed0362578e5882372066..4ecfb4761da70bf24598fc4787983eb2787e0ce4 100644 (file)
@@ -840,7 +840,6 @@ void set_deviation(RECEIVER *rx) {
 }
 
 void set_agc(RECEIVER *rx, int agc) {
-
     SetRXAAGCMode(rx->id, agc);
     // SetRXAAGCThresh(rx->id, agc_thresh_point, 4096.0, rx->sample_rate);
     SetRXAAGCSlope(rx->id, rx->agc_slope);
index 8b21ebf25e67dc5ea487bb342954f5a1a88e12c0..ad1e7aa94db22ebfa8dd0e4e4c77896945025981 100644 (file)
--- a/rx_menu.c
+++ b/rx_menu.c
@@ -166,8 +166,8 @@ static void local_output_changed_cb(GtkWidget *widget, gpointer data) {
     }
 
     if (active_receiver->local_audio) {
-        if (audio_open_output(active_receiver) <
-            0) { // audio_open with NEW device
+        if (audio_open_output(active_receiver) < 0) {
+            // audio_open with NEW device
             active_receiver->local_audio = 0;
             gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(local_audio_b),
                                          FALSE);