Skip to content

Commit 8cf6b4e

Browse files
authored
Merge pull request #937 from Paciente8159/fix-cnc-store-restore-bug
fix cnc motion store and restore build error
2 parents bcd5732 + 1dd5768 commit 8cf6b4e

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

uCNC/src/cnc.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -314,8 +314,10 @@ void cnc_store_motion(void)
314314
cnc_clear_exec_state(EXEC_HOLD);
315315
}
316316

317+
#ifndef ENABLE_ITP_FEED_TASK
317318
cnc_lock_itp = 0;
318319
#endif
320+
#endif
319321
}
320322

321323
void cnc_restore_motion(void)
@@ -347,8 +349,10 @@ void cnc_restore_motion(void)
347349
{
348350
cnc_clear_exec_state(EXEC_HOLD);
349351
}
352+
#ifndef ENABLE_ITP_FEED_TASK
350353
cnc_lock_itp = 0;
351354
#endif
355+
#endif
352356
}
353357

354358
// this function is executed every millisecond

0 commit comments

Comments
 (0)