Skip to content

Commit

Permalink
🐛 Fix homing_needed_error bits
Browse files Browse the repository at this point in the history
  • Loading branch information
thinkyhead committed Jan 23, 2023
1 parent e656f10 commit fffc966
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Marlin/src/module/motion.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down

0 comments on commit fffc966

Please sign in to comment.