Skip to content

Commit f01fa81

Browse files
committed
Fix G64 tolerance getting reset on E-stop
1 parent ef17bb8 commit f01fa81

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/emc/tp/tp.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -464,8 +464,6 @@ int tpClear(TP_STRUCT * const tp)
464464
struct state_tag_t tag = {{0}};
465465
tp->execTag = tag;
466466
tp->motionType = 0;
467-
tp->termCond = TC_TERM_COND_PARABOLIC;
468-
tp->tolerance = 0.0;
469467
tp->done = 1;
470468
tp->depth = tp->activeDepth = 0;
471469
tp->aborting = 0;
@@ -515,6 +513,8 @@ int tpInit(TP_STRUCT * const tp)
515513
tp->spindle.waiting_for_atspeed = MOTION_INVALID_ID;
516514

517515
tp->reverse_run = TC_DIR_FORWARD;
516+
tp->termCond = TC_TERM_COND_PARABOLIC;
517+
tp->tolerance = 0.0;
518518

519519
ZERO_EMC_POSE(tp->currentPos);
520520

0 commit comments

Comments
 (0)