Browse Source

Adjust tool offset menus (#14153)

InsanityAutomation 6 years ago
parent
commit
0f04ba016f
1 changed files with 4 additions and 4 deletions
  1. 4
    4
      Marlin/src/lcd/menu/menu_configuration.cpp

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

@@ -135,12 +135,12 @@ static void lcd_factory_settings() {
135 135
     START_MENU();
136 136
     MENU_BACK(MSG_CONFIGURATION);
137 137
     #if ENABLED(DUAL_X_CARRIAGE)
138
-      MENU_MULTIPLIER_ITEM_EDIT_CALLBACK(float52, MSG_X_OFFSET, &hotend_offset[X_AXIS][1], MIN(X2_HOME_POS, X2_MAX_POS) - 25.0, MAX(X2_HOME_POS, X2_MAX_POS) + 25.0, _recalc_offsets);
138
+      MENU_MULTIPLIER_ITEM_EDIT_CALLBACK(float51, MSG_X_OFFSET, &hotend_offset[X_AXIS][1], float(X2_HOME_POS - 25), float(X2_HOME_POS + 25), _recalc_offsets);
139 139
     #else
140
-      MENU_MULTIPLIER_ITEM_EDIT_CALLBACK(float52, MSG_X_OFFSET, &hotend_offset[X_AXIS][1], -10.0, 10.0, _recalc_offsets);
140
+      MENU_MULTIPLIER_ITEM_EDIT_CALLBACK(float52sign, MSG_X_OFFSET, &hotend_offset[X_AXIS][1], -10.0, 10.0, _recalc_offsets);
141 141
     #endif
142
-    MENU_MULTIPLIER_ITEM_EDIT_CALLBACK(float52, MSG_Y_OFFSET, &hotend_offset[Y_AXIS][1], -10.0, 10.0, _recalc_offsets);
143
-    MENU_MULTIPLIER_ITEM_EDIT_CALLBACK(float52, MSG_Z_OFFSET, &hotend_offset[Z_AXIS][1], Z_PROBE_LOW_POINT, 10.0, _recalc_offsets);
142
+    MENU_MULTIPLIER_ITEM_EDIT_CALLBACK(float52sign, MSG_Y_OFFSET, &hotend_offset[Y_AXIS][1], -10.0, 10.0, _recalc_offsets);
143
+    MENU_MULTIPLIER_ITEM_EDIT_CALLBACK(float52sign, MSG_Z_OFFSET, &hotend_offset[Z_AXIS][1], Z_PROBE_LOW_POINT, 10.0, _recalc_offsets);
144 144
     #if ENABLED(EEPROM_SETTINGS)
145 145
       MENU_ITEM(function, MSG_STORE_EEPROM, lcd_store_settings);
146 146
     #endif

Loading…
Cancel
Save