We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 990cd7f commit 9d7dec3Copy full SHA for 9d7dec3
1 file changed
src/emc/task/emctask.cc
@@ -217,13 +217,13 @@ int emcTaskHalt()
217
218
int emcTaskStateRestore()
219
{
220
- int res;
+ int res = 0;
221
// Do NOT restore on MDI command
222
if (emcStatus->task.mode == EMC_TASK_MODE_AUTO) {
223
// Validity of state tag checked within restore function
224
res = pinterp->restore_from_tag(emcStatus->motion.traj.tag);
225
}
226
- return 0;
+ return res;
227
228
229
int emcTaskAbort()
0 commit comments