Skip to content

Commit

Permalink
🔨 Suppress MMU2 resume_position warning
Browse files Browse the repository at this point in the history
  • Loading branch information
thinkyhead committed Mar 23, 2022
1 parent de8e436 commit 98dcb9e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Marlin/src/feature/mmu/mmu2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -821,13 +821,18 @@ void MMU2::manage_response(const bool move_axes, const bool turn_off_nozzle) {
LCD_MESSAGE(MSG_MMU2_RESUMING);
ATTN_BUZZ(true);

#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wmaybe-uninitialized"

if (move_axes && all_axes_homed()) {
// Move XY to starting position, then Z
do_blocking_move_to_xy(resume_position, feedRate_t(NOZZLE_PARK_XY_FEEDRATE));

// Move Z_AXIS to saved position
do_blocking_move_to_z(resume_position.z, feedRate_t(NOZZLE_PARK_Z_FEEDRATE));
}

#pragma GCC diagnostic pop
}
}
}
Expand Down

0 comments on commit 98dcb9e

Please sign in to comment.