We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e656f10 commit fffc966Copy full SHA for fffc966
Marlin/src/module/motion.cpp
@@ -1487,8 +1487,8 @@ void prepare_line_to_destination() {
1487
}
1488
1489
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];
+ if ((axis_bits &= axes_should_home(axis_bits))) {
+ char all_axes[] = STR_AXES_MAIN, need[NUM_AXES + 1];
1492
uint8_t n = 0;
1493
LOOP_NUM_AXES(i) if (TEST(axis_bits, i)) need[n++] = all_axes[i];
1494
need[n] = '\0';
0 commit comments