Browse Source

🩹 Fix ProUI + Leveling compile (#24508)

Keith Bennett 2 years ago
parent
commit
6d83f7a579
No account linked to committer's email address
1 changed files with 3 additions and 2 deletions
  1. 3
    2
      Marlin/src/lcd/e3v2/proui/dwin.cpp

+ 3
- 2
Marlin/src/lcd/e3v2/proui/dwin.cpp View File

99
   #define HAS_ONESTEP_LEVELING 1
99
   #define HAS_ONESTEP_LEVELING 1
100
 #endif
100
 #endif
101
 
101
 
102
-#if HAS_MESH || HAS_ONESTEP_LEVELING
102
+#if HAS_MESH || (HAS_LEVELING && HAS_ZOFFSET_ITEM)
103
   #include "../../../feature/bedlevel/bedlevel.h"
103
   #include "../../../feature/bedlevel/bedlevel.h"
104
   #include "bedlevel_tools.h"
104
   #include "bedlevel_tools.h"
105
 #endif
105
 #endif
2138
       );
2138
       );
2139
       gcode.process_subcommands_now(cmd);
2139
       gcode.process_subcommands_now(cmd);
2140
     #else
2140
     #else
2141
-      set_bed_leveling_enabled(false);
2141
+      TERN_(HAS_LEVELING, set_bed_leveling_enabled(false));
2142
       gcode.process_subcommands_now(F("G28O\nG0Z0F300\nM400"));
2142
       gcode.process_subcommands_now(F("G28O\nG0Z0F300\nM400"));
2143
     #endif
2143
     #endif
2144
     ui.reset_status();
2144
     ui.reset_status();
3825
 #endif // AUTO_BED_LEVELING_UBL
3825
 #endif // AUTO_BED_LEVELING_UBL
3826
 
3826
 
3827
 #if HAS_MESH
3827
 #if HAS_MESH
3828
+
3828
   void Draw_MeshSet_Menu() {
3829
   void Draw_MeshSet_Menu() {
3829
     checkkey = Menu;
3830
     checkkey = Menu;
3830
     if (SetMenu(MeshMenu, GET_TEXT_F(MSG_MESH_LEVELING), 15)) {
3831
     if (SetMenu(MeshMenu, GET_TEXT_F(MSG_MESH_LEVELING), 15)) {

Loading…
Cancel
Save