From: Ramakrishnan Muthukrishnan Date: Wed, 12 Jan 2022 07:07:22 +0000 (+0530) Subject: debug prints (setting mic gain and getting mic gain) X-Git-Url: https://git.rkrishnan.org/%5B/%5D%20/file/$top_link?a=commitdiff_plain;h=87ee3c01181957e6d3a7d657217dd8f9fffb2cd6;p=pihpsdr.git debug prints (setting mic gain and getting mic gain) --- diff --git a/rigctl.c b/rigctl.c index 7c61622..73338d0 100644 --- a/rigctl.c +++ b/rigctl.c @@ -1821,6 +1821,7 @@ gboolean parse_extended_cmd(char *command, CLIENT *client) { // set/read mic gain if (command[4] == ';') { memset(reply, '\0', 9); + printf("getting MIC GAIN: %f\n", mic_gain); sprintf(reply, "ZZMG%03d;", (int)(((mic_gain + 12.0) * 100.0 / 62.0))); send_resp(client->fd, reply); } else if (command[7] == ';') { diff --git a/sliders.c b/sliders.c index 60bcdcb..cbfd681 100644 --- a/sliders.c +++ b/sliders.c @@ -522,6 +522,7 @@ void set_mic_gain(double value) { g_print("%s\n",__FUNCTION__); if(can_transmit) { mic_gain=value; + printf("setting MIC GAIN to %f\n", mic_gain); SetTXAPanelGain1(transmitter->id,pow(10.0, mic_gain/20.0)); if(display_sliders) { gtk_range_set_value (GTK_RANGE(mic_gain_scale),mic_gain);