Browse Source

🚸 Move fade item up

Scott Lahteine 3 years ago
parent
commit
f46e05fcb1
1 changed files with 4 additions and 4 deletions
  1. 4
    4
      Marlin/src/lcd/menu/menu_ubl.cpp

+ 4
- 4
Marlin/src/lcd/menu/menu_ubl.cpp View File

666
     GCODES_ITEM(MSG_UBL_DEACTIVATE_MESH, PSTR("G29D"));
666
     GCODES_ITEM(MSG_UBL_DEACTIVATE_MESH, PSTR("G29D"));
667
   else
667
   else
668
     GCODES_ITEM(MSG_UBL_ACTIVATE_MESH, PSTR("G29A"));
668
     GCODES_ITEM(MSG_UBL_ACTIVATE_MESH, PSTR("G29A"));
669
+  #if ENABLED(ENABLE_LEVELING_FADE_HEIGHT)
670
+    editable.decimal = planner.z_fade_height;
671
+    EDIT_ITEM_FAST(float3, MSG_Z_FADE_HEIGHT, &editable.decimal, 0, 100, []{ set_z_fade_height(editable.decimal); });
672
+  #endif
669
   #if ENABLED(G26_MESH_VALIDATION)
673
   #if ENABLED(G26_MESH_VALIDATION)
670
     SUBMENU(MSG_UBL_STEP_BY_STEP_MENU, _lcd_ubl_step_by_step);
674
     SUBMENU(MSG_UBL_STEP_BY_STEP_MENU, _lcd_ubl_step_by_step);
671
   #endif
675
   #endif
677
   SUBMENU(MSG_UBL_OUTPUT_MAP, _lcd_ubl_output_map);
681
   SUBMENU(MSG_UBL_OUTPUT_MAP, _lcd_ubl_output_map);
678
   SUBMENU(MSG_UBL_TOOLS, _menu_ubl_tools);
682
   SUBMENU(MSG_UBL_TOOLS, _menu_ubl_tools);
679
   GCODES_ITEM(MSG_UBL_INFO_UBL, PSTR("G29W"));
683
   GCODES_ITEM(MSG_UBL_INFO_UBL, PSTR("G29W"));
680
-  #if ENABLED(ENABLE_LEVELING_FADE_HEIGHT)
681
-    editable.decimal = planner.z_fade_height;
682
-    EDIT_ITEM_FAST(float3, MSG_Z_FADE_HEIGHT, &editable.decimal, 0, 100, []{ set_z_fade_height(editable.decimal); });
683
-  #endif
684
   END_MENU();
684
   END_MENU();
685
 }
685
 }
686
 
686
 

Loading…
Cancel
Save