Fix Z raise in filament load M701 (#21762)

Fixes #21750
This commit is contained in:
Sebastiaan Dammann 2021-05-02 02:38:31 +02:00 committed by GitHub
parent 05c25b8cdb
commit b356b44849
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -97,7 +97,7 @@ void GcodeSuite::M701() {
}; };
// Raise the Z axis (with max limit) // Raise the Z axis (with max limit)
const float park_raise = _MIN(0, park_point.z, (Z_MAX_POS) - current_position.z); const float park_raise = _MIN(park_point.z, (Z_MAX_POS) - current_position.z);
move_z_by(park_raise); move_z_by(park_raise);
// Load filament // Load filament