Skip to content

Commit fffc966

Browse files
committed
🐛 Fix homing_needed_error bits
1 parent e656f10 commit fffc966

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Marlin/src/module/motion.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -1487,8 +1487,8 @@ void prepare_line_to_destination() {
14871487
}
14881488

14891489
bool homing_needed_error(main_axes_bits_t axis_bits/*=main_axes_mask*/) {
1490-
if ((axis_bits = axes_should_home(axis_bits))) {
1491-
char all_axes[] = STR_AXES_MAIN, need[NUM_AXES];
1490+
if ((axis_bits &= axes_should_home(axis_bits))) {
1491+
char all_axes[] = STR_AXES_MAIN, need[NUM_AXES + 1];
14921492
uint8_t n = 0;
14931493
LOOP_NUM_AXES(i) if (TEST(axis_bits, i)) need[n++] = all_axes[i];
14941494
need[n] = '\0';

0 commit comments

Comments
 (0)