We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 30661cf + f01fa81 commit a94f732Copy full SHA for a94f732
1 file changed
src/emc/tp/tp.c
@@ -464,8 +464,6 @@ int tpClear(TP_STRUCT * const tp)
464
struct state_tag_t tag = {{0}};
465
tp->execTag = tag;
466
tp->motionType = 0;
467
- tp->termCond = TC_TERM_COND_PARABOLIC;
468
- tp->tolerance = 0.0;
469
tp->done = 1;
470
tp->depth = tp->activeDepth = 0;
471
tp->aborting = 0;
@@ -515,6 +513,8 @@ int tpInit(TP_STRUCT * const tp)
515
513
tp->spindle.waiting_for_atspeed = MOTION_INVALID_ID;
516
514
517
tp->reverse_run = TC_DIR_FORWARD;
+ tp->termCond = TC_TERM_COND_PARABOLIC;
+ tp->tolerance = 0.0;
518
519
ZERO_EMC_POSE(tp->currentPos);
520
0 commit comments