Skip to content

Commit

Permalink
🩹 Apply 100% leveling correction below the bed
Browse files Browse the repository at this point in the history
  • Loading branch information
thinkyhead authored and LCh-77 committed Apr 19, 2022
1 parent f144bfd commit fdfb4e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Marlin/src/module/planner.h
Original file line number Diff line number Diff line change
Expand Up @@ -592,7 +592,7 @@ class Planner {
*/
static float fade_scaling_factor_for_z(const_float_t rz) {
static float z_fade_factor = 1;
if (!z_fade_height) return 1;
if (!z_fade_height || rz <= 0) return 1;
if (rz >= z_fade_height) return 0;
if (last_fade_z != rz) {
last_fade_z = rz;
Expand Down

0 comments on commit fdfb4e9

Please sign in to comment.