File tree Expand file tree Collapse file tree 2 files changed +7
-5
lines changed
Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Original file line number Diff line number Diff 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 ) {
Original file line number Diff line number Diff 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 );
You can’t perform that action at this time.
0 commit comments