Fix M166 Gradient Mix for DELTA (#19285)

This commit is contained in:
Kadah authored and Scott Lahteine committed 2021-04-29 08:44:58 -05:00
1 parent b186ab90a2
commit 0bd7a2fc7e
2 files changed
+14 -2

No files matched your search

+6 -1
View File
@@ -180,7 +180,12 @@ void Mixer::refresh_collector(const float proportion/*=1.0*/, const uint8_t t/*=
}
void Mixer::update_gradient_for_planner_z() {
update_gradient_for_z(planner.get_axis_position_mm(Z_AXIS));
#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