Fix M166 Gradient Mix for DELTA (#19285)

This commit is contained in:
Kadah
2020-09-07 01:15:42 -07:00
committed by Scott Lahteine
parent b186ab90a2
commit 0bd7a2fc7e
2 changed files with 14 additions and 2 deletions

View File

@ -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();
}