From ad5ad77f90a619eb9369a8fcb2b9d4c88f686a25 Mon Sep 17 00:00:00 2001
From: Ramakrishnan Muthukrishnan <ram@rkrishnan.org>
Date: Sat, 28 Oct 2023 10:27:18 +0530
Subject: [PATCH] receiver: reformat an expression for easier readability

---
 receiver.c | 1 -
 rx_menu.c  | 4 ++--
 2 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/receiver.c b/receiver.c
index 790abc4..4ecfb47 100644
--- a/receiver.c
+++ b/receiver.c
@@ -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);
diff --git a/rx_menu.c b/rx_menu.c
index 8b21ebf..ad1e7aa 100644
--- 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);
-- 
2.45.2