Browse Source

🔨 Suppress MMU2 resume_position warning

Scott Lahteine 3 years ago
parent
commit
98dcb9e614
1 changed files with 5 additions and 0 deletions
  1. 5
    0
      Marlin/src/feature/mmu/mmu2.cpp

+ 5
- 0
Marlin/src/feature/mmu/mmu2.cpp View File

821
       LCD_MESSAGE(MSG_MMU2_RESUMING);
821
       LCD_MESSAGE(MSG_MMU2_RESUMING);
822
       ATTN_BUZZ(true);
822
       ATTN_BUZZ(true);
823
 
823
 
824
+      #pragma GCC diagnostic push
825
+      #pragma GCC diagnostic ignored "-Wmaybe-uninitialized"
826
+
824
       if (move_axes && all_axes_homed()) {
827
       if (move_axes && all_axes_homed()) {
825
         // Move XY to starting position, then Z
828
         // Move XY to starting position, then Z
826
         do_blocking_move_to_xy(resume_position, feedRate_t(NOZZLE_PARK_XY_FEEDRATE));
829
         do_blocking_move_to_xy(resume_position, feedRate_t(NOZZLE_PARK_XY_FEEDRATE));
828
         // Move Z_AXIS to saved position
831
         // Move Z_AXIS to saved position
829
         do_blocking_move_to_z(resume_position.z, feedRate_t(NOZZLE_PARK_Z_FEEDRATE));
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
 }

Loading…
Cancel
Save