With G28 "go home" there's also no point to move E.
Saves another 96 bytes binary size.
This commit is contained in:
parent
d37fee8e82
commit
ab80852aec
|
|
@ -52,12 +52,6 @@ static void zero_z(void) {
|
||||||
enqueue(&t);
|
enqueue(&t);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void zero_e(void) {
|
|
||||||
TARGET t = startpoint;
|
|
||||||
t.E = 0;
|
|
||||||
enqueue(&t);
|
|
||||||
}
|
|
||||||
|
|
||||||
static void SpecialMoveE(int32_t e, uint32_t f) {
|
static void SpecialMoveE(int32_t e, uint32_t f) {
|
||||||
TARGET t = startpoint;
|
TARGET t = startpoint;
|
||||||
t.E = e;
|
t.E = e;
|
||||||
|
|
@ -184,16 +178,12 @@ void process_gcode_command() {
|
||||||
zero_z();
|
zero_z();
|
||||||
axisSelected = 1;
|
axisSelected = 1;
|
||||||
}
|
}
|
||||||
if (next_target.seen_E) {
|
// there's no point in moving E, as E is always relative
|
||||||
zero_e();
|
|
||||||
axisSelected = 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!axisSelected) {
|
if (!axisSelected) {
|
||||||
zero_x();
|
zero_x();
|
||||||
zero_y();
|
zero_y();
|
||||||
zero_z();
|
zero_z();
|
||||||
zero_e();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
break;
|
break;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue