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:
Jeff Epler 2016-07-23 09:38:39 -05:00
parent bbcc45a630
commit 92ca9a20cc

View file

@ -1093,8 +1093,8 @@ static PyObject *reset_interpreter(pyCommandChannel *s, PyObject *o) {
}
static PyObject *program_open(pyCommandChannel *s, PyObject *o) {
if(!reset_interpreter(s, o))
return NULL;
EMC_TASK_PLAN_CLOSE m0;
emcSendCommand(s, m0);
EMC_TASK_PLAN_OPEN m;
char *file;