@@ -896,7 +896,7 @@ static gboolean dialog_select_source(int chan_num)
896896 hal_pin_t * pin ;
897897 hal_sig_t * sig ;
898898
899- char * tab_label_text [3 ];
899+ char * tab_label_text [2 ];
900900 char * name [HAL_NAME_LEN + 1 ];
901901 char signal_name [HAL_NAME_LEN + 1 ];
902902 char title [BUFLEN ];
@@ -933,10 +933,9 @@ static gboolean dialog_select_source(int chan_num)
933933 /* text for tab labels */
934934 tab_label_text [0 ] = _ ("Pins" );
935935 tab_label_text [1 ] = _ ("Signals" );
936- tab_label_text [2 ] = _ ("Parameters" );
937936
938937 /* loop to create three identical tabs */
939- for (n = 0 ; n < 3 ; n ++ ) {
938+ for (n = 0 ; n < 2 ; n ++ ) {
940939 /* Create a scrolled window to display the list */
941940 scrolled_window = gtk_scrolled_window_new (NULL , NULL );
942941 gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (scrolled_window ),
@@ -1140,9 +1139,6 @@ static void write_chan_config(FILE *fp, scope_chan_t *chan)
11401139 } else if ( chan -> data_source_type == 1 ) {
11411140 // signal
11421141 fprintf (fp , "SIG %s\n" , chan -> name );
1143- } else if ( chan -> data_source_type == 2 ) {
1144- // pin
1145- fprintf (fp , "PARAM %s\n" , chan -> name );
11461142 } else {
11471143 // not configured
11481144 return ;
0 commit comments