]> git.rkrishnan.org Git - pihpsdr.git/commitdiff
Fixed ctcss frequency selection
authorJohn Melton G0ORX <john.d.melton@googlemail.com>
Mon, 25 May 2020 07:49:09 +0000 (08:49 +0100)
committerJohn Melton G0ORX <john.d.melton@googlemail.com>
Mon, 25 May 2020 07:49:09 +0000 (08:49 +0100)
tx_menu.c

index a025cc23ee4155d44fdb9b05baad1c2326380cd9..133778647b7910ba5af1e5d97e407df43a9e51fa 100644 (file)
--- a/tx_menu.c
+++ b/tx_menu.c
@@ -509,8 +509,8 @@ void tx_menu(GtkWidget *parent) {
   for(i=0;i<CTCSS_FREQUENCIES;i++) {
     sprintf(temp,"%0.1f",ctcss_frequencies[i]);
     gtk_combo_box_text_append(GTK_COMBO_BOX_TEXT(ctcss_frequency_b),NULL,temp);
-    gtk_combo_box_set_active(GTK_COMBO_BOX(ctcss_frequency_b),transmitter->ctcss==i);
   }
+  gtk_combo_box_set_active(GTK_COMBO_BOX(ctcss_frequency_b),transmitter->ctcss);
   gtk_grid_attach(GTK_GRID(grid),ctcss_frequency_b,col,row,1,1);
   g_signal_connect(ctcss_frequency_b,"changed",G_CALLBACK(ctcss_frequency_cb),NULL);