Skip to content

Commit 34dd177

Browse files
authored
Merge pull request LinuxCNC#3788 from snowgoer540/gregc/halscope_fix
halscope: clarify restart message, dont execute comment lines
2 parents aef0cfa + 61e3ee3 commit 34dd177

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

src/hal/utils/scope_files.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,8 +201,11 @@ int read_config_file (char *filename)
201201
cp++;
202202
}
203203
*cp = '\0';
204+
cp = cmd_buf;
205+
while (isspace((unsigned char)*cp)) cp++;
206+
if (*cp == '\0' || *cp == '#') continue;
204207
/* parse and execute the command */
205-
retval += parse_command(cmd_buf);
208+
retval += parse_command(cp);
206209
}
207210
fclose(fp);
208211
if ( retval < 0 ) {

src/hal/utils/scope_horiz.c

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -690,12 +690,11 @@ static void dialog_realtime_not_linked(void)
690690
GTK_DIALOG_MODAL,
691691
GTK_MESSAGE_INFO,
692692
GTK_BUTTONS_OK,
693-
_("Sample count changed"));
693+
_("Sample Count Changed - Restart Required"));
694694
gtk_message_dialog_format_secondary_text(
695695
GTK_MESSAGE_DIALOG(info_dialog),
696-
_("The new sample count (%d) will take effect\n"
697-
"the next time halscope is started.\n\n"
698-
"The setting has been saved to the configuration file."),
696+
_("The new sample count (%d) has been saved to the configuration\n"
697+
"file, and will take effect after restarting both LinuxCNC and Halscope.\n\n"),
699698
new_samples);
700699
gtk_dialog_run(GTK_DIALOG(info_dialog));
701700
gtk_widget_destroy(info_dialog);

0 commit comments

Comments
 (0)