Skip to content

Commit 7899abe

Browse files
authored
Merge pull request #3782 from multigcs/fixing_iocontrol_data_user_request_enable
fixing iocontrol_data.user_request_enable
2 parents 4eaf89c + 7fcb29c commit 7899abe

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/emc/task/taskclass.cc

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -375,6 +375,7 @@ int Task::emcAuxEstopOn()//EMC_AUX_ESTOP_ON_TYPE
375375
{
376376
/* assert an ESTOP to the outside world (thru HAL) */
377377
iocontrol_data.user_enable_out = 0; //disable on ESTOP_ON
378+
iocontrol_data.user_request_enable = 0;
378379
hal_init_pins(); //resets all HAL pins to safe valuea
379380
return 0;
380381
}
@@ -648,6 +649,10 @@ void Task::run(){ // called periodically from emctaskmain.cc
648649
tool_status = read_tool_inputs();
649650
if (iocontrol_data.emc_enable_in == 0) //check for estop from HW
650651
emcioStatus.aux.estop = 1;
651-
else
652+
else {
652653
emcioStatus.aux.estop = 0;
654+
if (iocontrol_data.user_request_enable == 1) {
655+
iocontrol_data.user_request_enable = 0;
656+
}
657+
}
653658
}

0 commit comments

Comments
 (0)