|
@@ -312,6 +312,9 @@
|
312
|
312
|
* or if the current Z Height is past the specified 'Fade Height'
|
313
|
313
|
*/
|
314
|
314
|
FORCE_INLINE float fade_scaling_factor_for_z(float current_z) {
|
|
315
|
+ #ifndef ENABLE_LEVELING_FADE_HEIGHT // if turned off, just return 0.000 Note that we assume the
|
|
316
|
+ return 0.000; // compiler will do 'Dead Code' elimination so there is no need
|
|
317
|
+ #endif // for an #else clause here.
|
315
|
318
|
if (last_specified_z == current_z)
|
316
|
319
|
return fade_scaling_factor_for_current_height;
|
317
|
320
|
|
|
@@ -328,4 +331,4 @@
|
328
|
331
|
extern int ubl_eeprom_start;
|
329
|
332
|
|
330
|
333
|
#endif // AUTO_BED_LEVELING_UBL
|
331
|
|
-#endif // UNIFIED_BED_LEVELING_H
|
|
334
|
+#endif // UNIFIED_BED_LEVELING_H
|