Browse Source

🔨 Suppress MMU2 resume_position warning

FB4S_WIFI
Scott Lahteine 3 years ago
committed by Scott Lahteine
parent
commit
10a0c9a9b3
  1. 5
      Marlin/src/feature/mmu/mmu2.cpp

5
Marlin/src/feature/mmu/mmu2.cpp

@ -821,6 +821,9 @@ 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));
@ -828,6 +831,8 @@ void MMU2::manage_response(const bool move_axes, const bool turn_off_nozzle) {
// Move Z_AXIS to saved position
do_blocking_move_to_z(resume_position.z, feedRate_t(NOZZLE_PARK_Z_FEEDRATE));
}
#pragma GCC diagnostic pop
}
}
}

Loading…
Cancel
Save