Skip to content

Commit af8a224

Browse files
committed
remove parameter references in halscope
1 parent 109943d commit af8a224

2 files changed

Lines changed: 3 additions & 7 deletions

File tree

src/hal/utils/scope_usr.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ typedef struct {
127127
GtkWidget *offset_entry;
128128
GtkWidget *offset_ac;
129129
/* widgets for source selection dialog */
130-
GtkWidget *lists[3]; /* lists for pins, signals, and params */
130+
GtkWidget *lists[2]; /* lists for pins, signals, and params */
131131
GtkWidget *notebook; /* pointer to the notebook */
132132
} scope_vert_t;
133133

src/hal/utils/scope_vert.c

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)