浏览代码

🔨 Suppress MMU2 resume_position warning

Scott Lahteine 3 年前
父节点
当前提交
98dcb9e614
共有 1 个文件被更改,包括 5 次插入0 次删除
  1. 5
    0
      Marlin/src/feature/mmu/mmu2.cpp

+ 5
- 0
Marlin/src/feature/mmu/mmu2.cpp 查看文件

@@ -821,6 +821,9 @@ void MMU2::manage_response(const bool move_axes, const bool turn_off_nozzle) {
821 821
       LCD_MESSAGE(MSG_MMU2_RESUMING);
822 822
       ATTN_BUZZ(true);
823 823
 
824
+      #pragma GCC diagnostic push
825
+      #pragma GCC diagnostic ignored "-Wmaybe-uninitialized"
826
+
824 827
       if (move_axes && all_axes_homed()) {
825 828
         // Move XY to starting position, then Z
826 829
         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) {
828 831
         // Move Z_AXIS to saved position
829 832
         do_blocking_move_to_z(resume_position.z, feedRate_t(NOZZLE_PARK_Z_FEEDRATE));
830 833
       }
834
+
835
+      #pragma GCC diagnostic pop
831 836
     }
832 837
   }
833 838
 }

正在加载...
取消
保存