From c10d763d9819b2226ef5bd5d801d8eb34acd06ee Mon Sep 17 00:00:00 2001 From: Scott Lahteine Date: Mon, 29 May 2017 09:36:41 -0500 Subject: [PATCH] Simpler prepare move conditions --- Marlin/Marlin_main.cpp | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/Marlin/Marlin_main.cpp b/Marlin/Marlin_main.cpp index 398855868..007431110 100644 --- a/Marlin/Marlin_main.cpp +++ b/Marlin/Marlin_main.cpp @@ -11859,16 +11859,12 @@ void prepare_move_to_destination() { #endif if ( - #if IS_KINEMATIC - #if UBL_DELTA - ubl.prepare_segmented_line_to(destination, feedrate_mm_s) - #else - prepare_kinematic_move_to(destination) - #endif + #if UBL_DELTA // Also works for CARTESIAN (smaller segments follow mesh more closely) + ubl.prepare_segmented_line_to(destination, feedrate_mm_s) + #elif IS_KINEMATIC + prepare_kinematic_move_to(destination) #elif ENABLED(DUAL_X_CARRIAGE) prepare_move_to_destination_dualx() - #elif UBL_DELTA // will work for CARTESIAN too (smaller segments follow mesh more closely) - ubl.prepare_segmented_line_to(destination, feedrate_mm_s) #else prepare_move_to_destination_cartesian() #endif