|
@@ -1719,12 +1719,12 @@ void kill_screen(const char* lcd_msg) {
|
1719
|
1719
|
if (UBL_HEIGHT_AMOUNT < 0) {
|
1720
|
1720
|
// Convert to positive for the `sprintf_P` string.
|
1721
|
1721
|
UBL_HEIGHT_AMOUNT = (UBL_HEIGHT_AMOUNT - (UBL_HEIGHT_AMOUNT * 2)); // Convert to positive
|
1722
|
|
- sprintf_P(UBL_LCD_GCODE, PSTR("G29 N Z-.%i"), UBL_HEIGHT_AMOUNT);
|
|
1722
|
+ sprintf_P(UBL_LCD_GCODE, PSTR("G29 P6-.%i"), UBL_HEIGHT_AMOUNT);
|
1723
|
1723
|
// Convert back to negative to preserve the user setting.
|
1724
|
1724
|
UBL_HEIGHT_AMOUNT = (UBL_HEIGHT_AMOUNT - (UBL_HEIGHT_AMOUNT * 2)); // Convert back to negative
|
1725
|
1725
|
}
|
1726
|
1726
|
else {
|
1727
|
|
- sprintf_P(UBL_LCD_GCODE, PSTR("G29 N Z.%i"), UBL_HEIGHT_AMOUNT);
|
|
1727
|
+ sprintf_P(UBL_LCD_GCODE, PSTR("G29 P6.%i"), UBL_HEIGHT_AMOUNT);
|
1728
|
1728
|
}
|
1729
|
1729
|
enqueue_and_echo_command(UBL_LCD_GCODE);
|
1730
|
1730
|
}
|
|
@@ -1748,8 +1748,8 @@ void kill_screen(const char* lcd_msg) {
|
1748
|
1748
|
START_MENU();
|
1749
|
1749
|
MENU_BACK(MSG_UBL_TOOLS);
|
1750
|
1750
|
MENU_BACK(MSG_UBL_LEVEL_BED);
|
1751
|
|
- MENU_ITEM(gcode, MSG_UBL_FINE_TUNE_ALL, PSTR("G29 P4 R O"));
|
1752
|
|
- MENU_ITEM(gcode, MSG_UBL_FINE_TUNE_CLOSEST, PSTR("G29 P4 O"));
|
|
1751
|
+ MENU_ITEM(gcode, MSG_UBL_FINE_TUNE_ALL, PSTR("G29 P4 R T"));
|
|
1752
|
+ MENU_ITEM(gcode, MSG_UBL_FINE_TUNE_CLOSEST, PSTR("G29 P4 T"));
|
1753
|
1753
|
MENU_ITEM(submenu, MSG_UBL_MESH_HEIGHT_ADJUST, _lcd_ubl_height_adjust_menu);
|
1754
|
1754
|
MENU_ITEM(submenu, MSG_WATCH, lcd_status_screen);
|
1755
|
1755
|
END_MENU();
|
|
@@ -1813,7 +1813,7 @@ void kill_screen(const char* lcd_msg) {
|
1813
|
1813
|
void _lcd_ubl_mesh_leveling() {
|
1814
|
1814
|
START_MENU();
|
1815
|
1815
|
MENU_BACK(MSG_UBL_TOOLS);
|
1816
|
|
- MENU_ITEM(gcode, MSG_UBL_3POINT_MESH_LEVELING, PSTR("G29 T"));
|
|
1816
|
+ MENU_ITEM(gcode, MSG_UBL_3POINT_MESH_LEVELING, PSTR("G29 J0"));
|
1817
|
1817
|
MENU_ITEM(submenu, MSG_UBL_GRID_MESH_LEVELING, _lcd_ubl_grid_level);
|
1818
|
1818
|
MENU_ITEM(submenu, MSG_WATCH, lcd_status_screen);
|
1819
|
1819
|
END_MENU();
|
|
@@ -1823,7 +1823,7 @@ void kill_screen(const char* lcd_msg) {
|
1823
|
1823
|
* UBL Fill-in Amount Mesh Command
|
1824
|
1824
|
*/
|
1825
|
1825
|
void _lcd_ubl_fillin_amount_cmd() {
|
1826
|
|
- sprintf_P(UBL_LCD_GCODE, PSTR("G29 P3 R C.%i N"), UBL_FILLIN_AMOUNT);
|
|
1826
|
+ sprintf_P(UBL_LCD_GCODE, PSTR("G29 P3 R C.%i"), UBL_FILLIN_AMOUNT);
|
1827
|
1827
|
enqueue_and_echo_command(UBL_LCD_GCODE);
|
1828
|
1828
|
}
|
1829
|
1829
|
|
|
@@ -1831,7 +1831,7 @@ void kill_screen(const char* lcd_msg) {
|
1831
|
1831
|
* UBL Smart Fill-in Command
|
1832
|
1832
|
*/
|
1833
|
1833
|
void _lcd_ubl_smart_fillin_cmd() {
|
1834
|
|
- sprintf_P(UBL_LCD_GCODE, PSTR("G29 P3 N O%i"), map_type);
|
|
1834
|
+ sprintf_P(UBL_LCD_GCODE, PSTR("G29 P3 T%i"), map_type);
|
1835
|
1835
|
enqueue_and_echo_command(UBL_LCD_GCODE);
|
1836
|
1836
|
}
|
1837
|
1837
|
|
|
@@ -1844,7 +1844,7 @@ void kill_screen(const char* lcd_msg) {
|
1844
|
1844
|
MENU_ITEM_EDIT(int3, MSG_UBL_FILLIN_AMOUNT, &UBL_FILLIN_AMOUNT, 0, 9);
|
1845
|
1845
|
MENU_ITEM(function, MSG_UBL_FILLIN_MESH, _lcd_ubl_fillin_amount_cmd);
|
1846
|
1846
|
MENU_ITEM(function, MSG_UBL_SMART_FILLIN, _lcd_ubl_smart_fillin_cmd);
|
1847
|
|
- MENU_ITEM(gcode, MSG_UBL_MANUAL_FILLIN, PSTR("G29 P2 B O"));
|
|
1847
|
+ MENU_ITEM(gcode, MSG_UBL_MANUAL_FILLIN, PSTR("G29 P2 B T0"));
|
1848
|
1848
|
MENU_ITEM(submenu, MSG_WATCH, lcd_status_screen);
|
1849
|
1849
|
END_MENU();
|
1850
|
1850
|
}
|
|
@@ -1886,7 +1886,7 @@ void kill_screen(const char* lcd_msg) {
|
1886
|
1886
|
* UBL Load Mesh Command
|
1887
|
1887
|
*/
|
1888
|
1888
|
void _lcd_ubl_load_mesh_cmd() {
|
1889
|
|
- sprintf_P(UBL_LCD_GCODE, PSTR("G29 N L%i"), UBL_STORAGE_SLOT);
|
|
1889
|
+ sprintf_P(UBL_LCD_GCODE, PSTR("G29 L%i"), UBL_STORAGE_SLOT);
|
1890
|
1890
|
enqueue_and_echo_command(UBL_LCD_GCODE);
|
1891
|
1891
|
}
|
1892
|
1892
|
|
|
@@ -1894,7 +1894,7 @@ void kill_screen(const char* lcd_msg) {
|
1894
|
1894
|
* UBL Save Mesh Command
|
1895
|
1895
|
*/
|
1896
|
1896
|
void _lcd_ubl_save_mesh_cmd() {
|
1897
|
|
- sprintf_P(UBL_LCD_GCODE, PSTR("G29 N S%i"), UBL_STORAGE_SLOT);
|
|
1897
|
+ sprintf_P(UBL_LCD_GCODE, PSTR("G29 S%i"), UBL_STORAGE_SLOT);
|
1898
|
1898
|
enqueue_and_echo_command(UBL_LCD_GCODE);
|
1899
|
1899
|
}
|
1900
|
1900
|
|
|
@@ -1914,7 +1914,7 @@ void kill_screen(const char* lcd_msg) {
|
1914
|
1914
|
* UBL Output map Command
|
1915
|
1915
|
*/
|
1916
|
1916
|
void _lcd_ubl_output_map_cmd() {
|
1917
|
|
- sprintf_P(UBL_LCD_GCODE, PSTR("G29 N O%i"), map_type);
|
|
1917
|
+ sprintf_P(UBL_LCD_GCODE, PSTR("G29 T%i"), map_type);
|
1918
|
1918
|
enqueue_and_echo_command(UBL_LCD_GCODE);
|
1919
|
1919
|
}
|
1920
|
1920
|
|
|
@@ -2002,12 +2002,12 @@ void kill_screen(const char* lcd_msg) {
|
2002
|
2002
|
void _lcd_ubl_level_bed() {
|
2003
|
2003
|
START_MENU();
|
2004
|
2004
|
MENU_BACK(MSG_PREPARE);
|
2005
|
|
- MENU_ITEM(gcode, MSG_UBL_ACTIVATE_MESH, PSTR("G29 A N"));
|
2006
|
|
- MENU_ITEM(gcode, MSG_UBL_DEACTIVATE_MESH, PSTR("G29 D N"));
|
|
2005
|
+ MENU_ITEM(gcode, MSG_UBL_ACTIVATE_MESH, PSTR("G29 A"));
|
|
2006
|
+ MENU_ITEM(gcode, MSG_UBL_DEACTIVATE_MESH, PSTR("G29 D"));
|
2007
|
2007
|
MENU_ITEM(submenu, MSG_UBL_STORAGE_MESH_MENU, _lcd_ubl_storage_mesh);
|
2008
|
2008
|
MENU_ITEM(submenu, MSG_UBL_OUTPUT_MAP, _lcd_ubl_output_map);
|
2009
|
2009
|
MENU_ITEM(submenu, MSG_UBL_TOOLS, _lcd_ubl_tools_menu);
|
2010
|
|
- MENU_ITEM(gcode, MSG_UBL_INFO_UBL, PSTR("G29 W N"));
|
|
2010
|
+ MENU_ITEM(gcode, MSG_UBL_INFO_UBL, PSTR("G29 W"));
|
2011
|
2011
|
END_MENU();
|
2012
|
2012
|
}
|
2013
|
2013
|
#endif
|
|
@@ -2497,10 +2497,10 @@ void kill_screen(const char* lcd_msg) {
|
2497
|
2497
|
#if ENABLED(EEPROM_SETTINGS)
|
2498
|
2498
|
MENU_ITEM(function, MSG_STORE_EEPROM, lcd_store_settings);
|
2499
|
2499
|
MENU_ITEM(function, MSG_LOAD_EEPROM, lcd_load_settings);
|
|
2500
|
+ MENU_ITEM(function, MSG_RESTORE_FAILSAFE, lcd_factory_settings);
|
|
2501
|
+ MENU_ITEM(gcode, MSG_INIT_EEPROM, PSTR("M502\nM500\nM501"));
|
2500
|
2502
|
#endif
|
2501
|
|
-
|
2502
|
|
- MENU_ITEM(function, MSG_RESTORE_FAILSAFE, lcd_factory_settings);
|
2503
|
|
- END_MENU();
|
|
2503
|
+ END_MENU();
|
2504
|
2504
|
}
|
2505
|
2505
|
|
2506
|
2506
|
/**
|