From: Ramakrishnan Muthukrishnan Date: Sat, 28 Oct 2023 04:57:18 +0000 (+0530) Subject: receiver: reformat an expression for easier readability X-Git-Url: https://git.rkrishnan.org/%5B/%5D%20/file/frontends//%22%3C?a=commitdiff_plain;h=ad5ad77f90a619eb9369a8fcb2b9d4c88f686a25;p=pihpsdr.git receiver: reformat an expression for easier readability --- 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);