Skip to content

Commit 98dcb9e

Browse files
committed
🔨 Suppress MMU2 resume_position warning
1 parent de8e436 commit 98dcb9e

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Marlin/src/feature/mmu/mmu2.cpp

+5
Original file line numberDiff line numberDiff line change
@@ -821,13 +821,18 @@ void MMU2::manage_response(const bool move_axes, const bool turn_off_nozzle) {
821821
LCD_MESSAGE(MSG_MMU2_RESUMING);
822822
ATTN_BUZZ(true);
823823

824+
#pragma GCC diagnostic push
825+
#pragma GCC diagnostic ignored "-Wmaybe-uninitialized"
826+
824827
if (move_axes && all_axes_homed()) {
825828
// Move XY to starting position, then Z
826829
do_blocking_move_to_xy(resume_position, feedRate_t(NOZZLE_PARK_XY_FEEDRATE));
827830

828831
// Move Z_AXIS to saved position
829832
do_blocking_move_to_z(resume_position.z, feedRate_t(NOZZLE_PARK_Z_FEEDRATE));
830833
}
834+
835+
#pragma GCC diagnostic pop
831836
}
832837
}
833838
}

0 commit comments

Comments
 (0)