We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents aca39d5 + 9933ccd commit d6b7997Copy full SHA for d6b7997
1 file changed
src/emc/usr_intf/axis/extensions/emcmodule.cc
@@ -1022,17 +1022,20 @@ static PyObject *flood(pyCommandChannel *s, PyObject *o) {
1022
1023
static PyObject *brake(pyCommandChannel *s, PyObject *o) {
1024
int dir;
1025
- if(!PyArg_ParseTuple(o, "i", &dir)) return NULL;
+ int spindle = 0;
1026
+ if(!PyArg_ParseTuple(o, "i|i", &dir, &spindle)) return NULL;
1027
switch(dir) {
1028
case LOCAL_BRAKE_ENGAGE:
1029
{
1030
EMC_SPINDLE_BRAKE_ENGAGE m;
1031
+ m.spindle = spindle;
1032
emcSendCommand(s, m);
1033
}
1034
break;
1035
case LOCAL_BRAKE_RELEASE:
1036
1037
EMC_SPINDLE_BRAKE_RELEASE m;
1038
1039
1040
1041
0 commit comments