|
@@ -1946,8 +1946,8 @@ void kill_screen(const char* lcd_msg) {
|
1946
|
1946
|
*/
|
1947
|
1947
|
void _lcd_ubl_adjust_height_cmd() {
|
1948
|
1948
|
char UBL_LCD_GCODE[16];
|
1949
|
|
- const int ind = ubl_height_amount < 0 ? 6 : 7;
|
1950
|
|
- strcpy_P(UBL_LCD_GCODE, PSTR("G29 P6-"));
|
|
1949
|
+ const int ind = ubl_height_amount > 0 ? 9 : 10;
|
|
1950
|
+ strcpy_P(UBL_LCD_GCODE, PSTR("G29 P6 C -"));
|
1951
|
1951
|
sprintf_P(&UBL_LCD_GCODE[ind], PSTR(".%i"), abs(ubl_height_amount));
|
1952
|
1952
|
enqueue_and_echo_command(UBL_LCD_GCODE);
|
1953
|
1953
|
}
|
|
@@ -1963,8 +1963,7 @@ void kill_screen(const char* lcd_msg) {
|
1963
|
1963
|
void _lcd_ubl_height_adjust_menu() {
|
1964
|
1964
|
START_MENU();
|
1965
|
1965
|
MENU_BACK(MSG_UBL_EDIT_MESH_MENU);
|
1966
|
|
- MENU_ITEM_EDIT(int3, MSG_UBL_MESH_HEIGHT_AMOUNT, &ubl_height_amount, -9, 9);
|
1967
|
|
- MENU_ITEM(function, MSG_UBL_MESH_HEIGHT_ADJUST, _lcd_ubl_adjust_height_cmd);
|
|
1966
|
+ MENU_ITEM_EDIT_CALLBACK(int3, MSG_UBL_MESH_HEIGHT_AMOUNT, &ubl_height_amount, -9, 9, _lcd_ubl_adjust_height_cmd);
|
1968
|
1967
|
MENU_ITEM(function, MSG_WATCH, lcd_return_to_status);
|
1969
|
1968
|
END_MENU();
|
1970
|
1969
|
}
|
|
@@ -2100,8 +2099,7 @@ void kill_screen(const char* lcd_msg) {
|
2100
|
2099
|
void _lcd_ubl_fillin_menu() {
|
2101
|
2100
|
START_MENU();
|
2102
|
2101
|
MENU_BACK(MSG_UBL_BUILD_MESH_MENU);
|
2103
|
|
- MENU_ITEM_EDIT(int3, MSG_UBL_FILLIN_AMOUNT, &ubl_fillin_amount, 0, 9);
|
2104
|
|
- MENU_ITEM(function, MSG_UBL_FILLIN_MESH, _lcd_ubl_fillin_amount_cmd);
|
|
2102
|
+ MENU_ITEM_EDIT_CALLBACK(int3, MSG_UBL_FILLIN_AMOUNT, &ubl_fillin_amount, 0, 9, _lcd_ubl_fillin_amount_cmd);
|
2105
|
2103
|
MENU_ITEM(function, MSG_UBL_SMART_FILLIN, _lcd_ubl_smart_fillin_cmd);
|
2106
|
2104
|
MENU_ITEM(gcode, MSG_UBL_MANUAL_FILLIN, PSTR("G29 P2 B T0"));
|
2107
|
2105
|
MENU_ITEM(function, MSG_WATCH, lcd_return_to_status);
|
|
@@ -2960,7 +2958,7 @@ void kill_screen(const char* lcd_msg) {
|
2960
|
2958
|
#endif
|
2961
|
2959
|
MENU_ITEM(function, MSG_RESTORE_FAILSAFE, lcd_factory_settings);
|
2962
|
2960
|
#if ENABLED(EEPROM_SETTINGS)
|
2963
|
|
- MENU_ITEM(gcode, MSG_INIT_EEPROM, PSTR("M502\nM500")); // TODO: Add "Are You Sure?" step
|
|
2961
|
+ MENU_ITEM(gcode, MSG_INIT_EEPROM, PSTR("M502\nM500\nM501")); // TODO: Add "Are You Sure?" step
|
2964
|
2962
|
#endif
|
2965
|
2963
|
|
2966
|
2964
|
END_MENU();
|