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
 #ifdef CUSTOM_M_CODES
534
 #ifdef CUSTOM_M_CODES
535
   #ifdef ENABLE_AUTO_BED_LEVELING
535
   #ifdef ENABLE_AUTO_BED_LEVELING
536
     #define CUSTOM_M_CODE_SET_Z_PROBE_OFFSET 851
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
   #endif
539
   #endif
540
 #endif
540
 #endif
541
 
541
 

+ 1
- 1
Marlin/ultralcd.cpp View File

911
   START_MENU();
911
   START_MENU();
912
   MENU_ITEM(back, MSG_CONTROL, lcd_control_menu);
912
   MENU_ITEM(back, MSG_CONTROL, lcd_control_menu);
913
   #ifdef ENABLE_AUTO_BED_LEVELING
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
   #endif
915
   #endif
916
   MENU_ITEM_EDIT(float5, MSG_ACC, &acceleration, 10, 99000);
916
   MENU_ITEM_EDIT(float5, MSG_ACC, &acceleration, 10, 99000);
917
   MENU_ITEM_EDIT(float3, MSG_VXY_JERK, &max_xy_jerk, 1, 990);
917
   MENU_ITEM_EDIT(float3, MSG_VXY_JERK, &max_xy_jerk, 1, 990);

Loading…
Cancel
Save