From fffc96661f53735691b6287c8bb90d0229dbfaae Mon Sep 17 00:00:00 2001 From: Scott Lahteine Date: Mon, 23 Jan 2023 01:22:03 -0600 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Fix=20homing=5Fneeded=5Ferror=20?= =?UTF-8?q?bits?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Marlin/src/module/motion.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Marlin/src/module/motion.cpp b/Marlin/src/module/motion.cpp index 8b1a8b6e502c..d440093b169b 100644 --- a/Marlin/src/module/motion.cpp +++ b/Marlin/src/module/motion.cpp @@ -1487,8 +1487,8 @@ void prepare_line_to_destination() { } bool homing_needed_error(main_axes_bits_t axis_bits/*=main_axes_mask*/) { - if ((axis_bits = axes_should_home(axis_bits))) { - char all_axes[] = STR_AXES_MAIN, need[NUM_AXES]; + if ((axis_bits &= axes_should_home(axis_bits))) { + char all_axes[] = STR_AXES_MAIN, need[NUM_AXES + 1]; uint8_t n = 0; LOOP_NUM_AXES(i) if (TEST(axis_bits, i)) need[n++] = all_axes[i]; need[n] = '\0';