Browse Source

Fix probe range editing

- Increase the probe offset range to -20…20
- Apply the range limits to the menu item
Scott Lahteine 9 years ago
parent
commit
78090275a9
2 changed files with 3 additions and 3 deletions
  1. 2
    2
      Marlin/Configuration.h
  2. 1
    1
      Marlin/ultralcd.cpp

+ 2
- 2
Marlin/Configuration.h View File

@@ -534,8 +534,8 @@ const bool Z_MAX_ENDSTOP_INVERTING = false; // set to true to invert the logic o
534 534
 #ifdef CUSTOM_M_CODES
535 535
   #ifdef ENABLE_AUTO_BED_LEVELING
536 536
     #define CUSTOM_M_CODE_SET_Z_PROBE_OFFSET 851
537
-    #define Z_PROBE_OFFSET_RANGE_MIN -15
538
-    #define Z_PROBE_OFFSET_RANGE_MAX -5
537
+    #define Z_PROBE_OFFSET_RANGE_MIN -20
538
+    #define Z_PROBE_OFFSET_RANGE_MAX 20
539 539
   #endif
540 540
 #endif
541 541
 

+ 1
- 1
Marlin/ultralcd.cpp View File

@@ -911,7 +911,7 @@ static void lcd_control_motion_menu() {
911 911
   START_MENU();
912 912
   MENU_ITEM(back, MSG_CONTROL, lcd_control_menu);
913 913
   #ifdef ENABLE_AUTO_BED_LEVELING
914
-    MENU_ITEM_EDIT(float32, MSG_ZPROBE_ZOFFSET, &zprobe_zoffset, 0.0, 50);
914
+    MENU_ITEM_EDIT(float32, MSG_ZPROBE_ZOFFSET, &zprobe_zoffset, Z_PROBE_OFFSET_RANGE_MIN, Z_PROBE_OFFSET_RANGE_MAX);
915 915
   #endif
916 916
   MENU_ITEM_EDIT(float5, MSG_ACC, &acceleration, 10, 99000);
917 917
   MENU_ITEM_EDIT(float3, MSG_VXY_JERK, &max_xy_jerk, 1, 990);

Loading…
Cancel
Save