MKFirmware / MK4duo

MK4duo Firmware Printers 3D for Arduino and Arduino due
http://www.marlinkimbra.it
GNU General Public License v3.0
206 stars 118 forks source link

QUICK_HOME does not work on COREXY #785

Closed VitDagger closed 4 years ago

VitDagger commented 4 years ago

Issue description

When #define QUICK_HOME is enabled, an error occurs during compilation.

In previous firmware versions, the variable x_axis_home_dir was defined in

     #if ENABLED (DUAL_X_CARRIAGE)
       const int x_axis_home_dir = x_home_dir (toolManager.extruder.active);
     #else
       const int x_axis_home_dir = home_dir.x;
     #endif

That is what is in the cartesian_mechanics.cpp file, but these lines are no longer in the core_mechanics.cpp file. Added these lines manually and the compilation error was gone.

Compile errors

 sketch\src\core\mechanics\core_mechanics.cpp: In static member function 'static void Core_Mechanics::quick_home_xy()':
 sketch\src\core\mechanics\core_mechanics.cpp:912:57: error: 'x_axis_home_dir' was not declared in this scope

      do_blocking_move_to_xy(1.5f * data.base_pos.max.x * x_axis_home_dir, 1.5f * data.base_pos.max.y * home_dir.y, fr_mm_s);

Firmware version

4.4.0

My setup

define MECHANISM MECH_COREXY

define QUICK_HOME