Skip to content

Commit 736a3a9

Browse files
committed
Don't use RS274NGC_STARTUP_CODE when updating the preview
This fixes issue #2753
1 parent f51a6de commit 736a3a9

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

src/emc/rs274ngc/gcodemodule.cc

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -777,11 +777,7 @@ static PyObject *parse_file(PyObject *self, PyObject *args) {
777777
if(!RESULT_OK) goto out_error;
778778
result = pinterp->execute();
779779
}
780-
if(initcode && RESULT_OK) {
781-
result = pinterp->read(initcode);
782-
if(!RESULT_OK) goto out_error;
783-
result = pinterp->execute();
784-
}
780+
785781
while(!interp_error && RESULT_OK) {
786782
error_line_offset = 1;
787783
result = pinterp->read();

0 commit comments

Comments
 (0)