Skip to content

Commit f67fa9b

Browse files
committed
Revert 736a3a9
This reverts a bad fix for 2753 that caused issue 3563
1 parent 6f7a093 commit f67fa9b

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

src/emc/rs274ngc/gcodemodule.cc

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -778,6 +778,12 @@ static PyObject *parse_file(PyObject *self, PyObject *args) {
778778
result = pinterp->execute();
779779
}
780780

781+
if(initcode && RESULT_OK) {
782+
result = pinterp->read(initcode);
783+
if(!RESULT_OK) goto out_error;
784+
result = pinterp->execute();
785+
}
786+
781787
while(!interp_error && RESULT_OK) {
782788
error_line_offset = 1;
783789
result = pinterp->read();

0 commit comments

Comments
 (0)