🧑💻 Fix UBL Build Mesh preheat items (#24598)
Co-authored-by: Scott Lahteine <thinkyhead@users.noreply.github.com>
This commit is contained in:
parent
8025117ac0
commit
637bff9982
|
@ -312,11 +312,7 @@ void _lcd_ubl_build_mesh() {
|
||||||
START_MENU();
|
START_MENU();
|
||||||
BACK_ITEM(MSG_UBL_TOOLS);
|
BACK_ITEM(MSG_UBL_TOOLS);
|
||||||
#if HAS_PREHEAT
|
#if HAS_PREHEAT
|
||||||
#if HAS_HEATED_BED
|
#define PREHEAT_BED_GCODE(M) TERN(HAS_HEATED_BED, "M190I" STRINGIFY(M) "\n", "")
|
||||||
#define PREHEAT_BED_GCODE(M) "M190I" STRINGIFY(M) "\n"
|
|
||||||
#else
|
|
||||||
#define PREHEAT_BED_GCODE(M) ""
|
|
||||||
#endif
|
|
||||||
#define BUILD_MESH_GCODE_ITEM(M) GCODES_ITEM_f(ui.get_preheat_label(M), MSG_UBL_BUILD_MESH_M, \
|
#define BUILD_MESH_GCODE_ITEM(M) GCODES_ITEM_f(ui.get_preheat_label(M), MSG_UBL_BUILD_MESH_M, \
|
||||||
F( \
|
F( \
|
||||||
"G28\n" \
|
"G28\n" \
|
||||||
|
@ -325,20 +321,8 @@ void _lcd_ubl_build_mesh() {
|
||||||
"G29P1\n" \
|
"G29P1\n" \
|
||||||
"M104S0\n" \
|
"M104S0\n" \
|
||||||
"M140S0" \
|
"M140S0" \
|
||||||
) )
|
) );
|
||||||
BUILD_MESH_GCODE_ITEM(0);
|
REPEAT(PREHEAT_COUNT, BUILD_MESH_GCODE_ITEM)
|
||||||
#if PREHEAT_COUNT > 1
|
|
||||||
BUILD_MESH_GCODE_ITEM(1);
|
|
||||||
#if PREHEAT_COUNT > 2
|
|
||||||
BUILD_MESH_GCODE_ITEM(2);
|
|
||||||
#if PREHEAT_COUNT > 3
|
|
||||||
BUILD_MESH_GCODE_ITEM(3);
|
|
||||||
#if PREHEAT_COUNT > 4
|
|
||||||
BUILD_MESH_GCODE_ITEM(4);
|
|
||||||
#endif
|
|
||||||
#endif
|
|
||||||
#endif
|
|
||||||
#endif
|
|
||||||
#endif // HAS_PREHEAT
|
#endif // HAS_PREHEAT
|
||||||
|
|
||||||
SUBMENU(MSG_UBL_BUILD_CUSTOM_MESH, _lcd_ubl_custom_mesh);
|
SUBMENU(MSG_UBL_BUILD_CUSTOM_MESH, _lcd_ubl_custom_mesh);
|
||||||
|
|
Loading…
Reference in a new issue