linuxcncmodule: don't reset interpreter on program_open
this had side effects like resetting the optional stop flag. Closes #116 Signed-off-by: Jeff Epler <jepler@unpythonic.net>
This commit is contained in:
parent
bbcc45a630
commit
92ca9a20cc
1 changed files with 2 additions and 2 deletions
|
|
@ -1093,8 +1093,8 @@ static PyObject *reset_interpreter(pyCommandChannel *s, PyObject *o) {
|
||||||
}
|
}
|
||||||
|
|
||||||
static PyObject *program_open(pyCommandChannel *s, PyObject *o) {
|
static PyObject *program_open(pyCommandChannel *s, PyObject *o) {
|
||||||
if(!reset_interpreter(s, o))
|
EMC_TASK_PLAN_CLOSE m0;
|
||||||
return NULL;
|
emcSendCommand(s, m0);
|
||||||
|
|
||||||
EMC_TASK_PLAN_OPEN m;
|
EMC_TASK_PLAN_OPEN m;
|
||||||
char *file;
|
char *file;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue