@@ -359,8 +359,6 @@ int emcSystemCmd(char *s)
359359
360360// shorthand typecasting ptrs
361361static EMC_JOINT_HALT *joint_halt_msg;
362- static EMC_JOINT_DISABLE *disable_msg;
363- static EMC_JOINT_ENABLE *enable_msg;
364362static EMC_JOINT_HOME *home_msg;
365363static EMC_JOINT_UNHOME *unhome_msg;
366364static EMC_JOG_CONT *jog_cont_msg;
@@ -806,8 +804,6 @@ static int emcTaskPlan(void)
806804 // immediate commands
807805 case EMC_JOINT_SET_BACKLASH_TYPE:
808806 case EMC_JOINT_SET_HOMING_PARAMS_TYPE:
809- case EMC_JOINT_DISABLE_TYPE:
810- case EMC_JOINT_ENABLE_TYPE:
811807 case EMC_JOINT_SET_FERROR_TYPE:
812808 case EMC_JOINT_SET_MIN_FERROR_TYPE:
813809 case EMC_JOINT_LOAD_COMP_TYPE:
@@ -898,8 +894,6 @@ static int emcTaskPlan(void)
898894
899895 // immediate commands
900896
901- case EMC_JOINT_DISABLE_TYPE:
902- case EMC_JOINT_ENABLE_TYPE:
903897 case EMC_JOINT_SET_BACKLASH_TYPE:
904898 case EMC_JOINT_SET_HOMING_PARAMS_TYPE:
905899 case EMC_JOINT_SET_FERROR_TYPE:
@@ -1671,16 +1665,6 @@ static int emcTaskIssueCommand(NMLmsg * cmd)
16711665
16721666 // joint commands
16731667
1674- case EMC_JOINT_DISABLE_TYPE:
1675- disable_msg = (EMC_JOINT_DISABLE *) cmd;
1676- retval = emcJointDisable (disable_msg->joint );
1677- break ;
1678-
1679- case EMC_JOINT_ENABLE_TYPE:
1680- enable_msg = (EMC_JOINT_ENABLE *) cmd;
1681- retval = emcJointEnable (enable_msg->joint );
1682- break ;
1683-
16841668 case EMC_JOINT_HOME_TYPE:
16851669 home_msg = (EMC_JOINT_HOME *) cmd;
16861670 retval = emcJointHome (home_msg->joint );
@@ -3356,9 +3340,6 @@ int main(int argc, char *argv[])
33563340 emcMotionAbort ();
33573341 for (int s = 0 ; s < emcStatus->motion .traj .spindles ; s++) emcSpindleAbort (s);
33583342 emcAuxEstopOn ();
3359- for (int t = 0 ; t < emcStatus->motion .traj .joints ; t++) {
3360- emcJointDisable (t);
3361- }
33623343 emcTrajDisable ();
33633344 emcLubeOff ();
33643345 emcIoAbort (EMC_ABORT_TASK_STATE_ESTOP);
0 commit comments