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);
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
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
Firmware version
4.4.0
My setup
define MECHANISM MECH_COREXY
define QUICK_HOME