Fix M166 Gradient Mix for DELTA (#19285)
This commit is contained in:
parent
d3f1f3533d
commit
bb017038d4
@ -180,7 +180,12 @@ void Mixer::refresh_collector(const float proportion/*=1.0*/, const uint8_t t/*=
|
||||
}
|
||||
|
||||
void Mixer::update_gradient_for_planner_z() {
|
||||
#if ENABLED(DELTA)
|
||||
get_cartesian_from_steppers();
|
||||
update_gradient_for_z(cartes.z);
|
||||
#else
|
||||
update_gradient_for_z(planner.get_axis_position_mm(Z_AXIS));
|
||||
#endif
|
||||
}
|
||||
|
||||
#endif // GRADIENT_MIX
|
||||
|
@ -86,7 +86,14 @@ void GcodeSuite::M166() {
|
||||
echo_zt(mixer.gradient.end_vtool, mixer.gradient.end_z);
|
||||
|
||||
mixer.update_mix_from_gradient();
|
||||
SERIAL_ECHOPAIR(" ; Current Z", planner.get_axis_position_mm(Z_AXIS));
|
||||
|
||||
SERIAL_ECHOPGM(" ; Current Z");
|
||||
#if ENABLED(DELTA)
|
||||
get_cartesian_from_steppers();
|
||||
SERIAL_ECHO(cartes.z);
|
||||
#else
|
||||
SERIAL_ECHO(planner.get_axis_position_mm(Z_AXIS));
|
||||
#endif
|
||||
echo_mix();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user