2018-10-28 01:30:37 +02:00
|
|
|
/**
|
|
|
|
* Marlin 3D Printer Firmware
|
2020-02-03 15:00:57 +01:00
|
|
|
* Copyright (c) 2020 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
|
2018-10-28 01:30:37 +02:00
|
|
|
*
|
|
|
|
* Based on Sprinter and grbl.
|
2019-06-28 06:57:50 +02:00
|
|
|
* Copyright (c) 2011 Camiel Gubbels / Erik van der Zalm
|
2018-10-28 01:30:37 +02:00
|
|
|
*
|
|
|
|
* This program is free software: you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
* the Free Software Foundation, either version 3 of the License, or
|
|
|
|
* (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
2020-07-23 05:20:14 +02:00
|
|
|
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
2018-10-28 01:30:37 +02:00
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
//
|
|
|
|
// Temperature Menu
|
|
|
|
//
|
|
|
|
|
2020-06-25 02:44:50 +02:00
|
|
|
#include "../../inc/MarlinConfig.h"
|
2018-10-28 01:30:37 +02:00
|
|
|
|
2020-06-25 02:44:50 +02:00
|
|
|
#if HAS_LCD_MENU && HAS_TEMPERATURE
|
2018-10-28 01:30:37 +02:00
|
|
|
|
2020-08-21 12:21:34 +02:00
|
|
|
#include "menu_item.h"
|
2018-10-28 01:30:37 +02:00
|
|
|
#include "../../module/temperature.h"
|
|
|
|
|
2020-10-17 03:38:23 +02:00
|
|
|
#if HAS_FAN || ENABLED(SINGLENOZZLE)
|
2018-10-28 01:30:37 +02:00
|
|
|
#include "../../module/motion.h"
|
|
|
|
#endif
|
|
|
|
|
2021-04-02 02:29:49 +02:00
|
|
|
#if EITHER(HAS_COOLER, LASER_COOLANT_FLOW_METER)
|
2021-03-06 21:13:28 +01:00
|
|
|
#include "../../feature/cooler.h"
|
|
|
|
#endif
|
|
|
|
|
2021-01-20 02:19:10 +01:00
|
|
|
#if ENABLED(SINGLENOZZLE_STANDBY_TEMP)
|
|
|
|
#include "../../module/tool_change.h"
|
|
|
|
#endif
|
|
|
|
|
2018-10-28 01:30:37 +02:00
|
|
|
//
|
|
|
|
// "Temperature" submenu items
|
|
|
|
//
|
|
|
|
|
2021-03-19 22:34:10 +01:00
|
|
|
void Temperature::lcd_preheat(const uint8_t e, const int8_t indh, const int8_t indb) {
|
2020-10-17 03:05:45 +02:00
|
|
|
UNUSED(e); UNUSED(indh); UNUSED(indb);
|
2020-04-20 06:56:55 +02:00
|
|
|
#if HAS_HOTEND
|
2020-06-25 02:44:50 +02:00
|
|
|
if (indh >= 0 && ui.material_preset[indh].hotend_temp > 0)
|
2021-03-19 22:34:10 +01:00
|
|
|
setTargetHotend(_MIN(thermalManager.hotend_max_target(e), ui.material_preset[indh].hotend_temp), e);
|
2019-09-10 09:20:49 +02:00
|
|
|
#endif
|
2018-10-28 01:30:37 +02:00
|
|
|
#if HAS_HEATED_BED
|
2020-06-25 02:44:50 +02:00
|
|
|
if (indb >= 0 && ui.material_preset[indb].bed_temp > 0) setTargetBed(ui.material_preset[indb].bed_temp);
|
2018-10-28 01:30:37 +02:00
|
|
|
#endif
|
2020-04-27 11:35:20 +02:00
|
|
|
#if HAS_FAN
|
2021-06-15 01:45:54 +02:00
|
|
|
if (indh >= 0) {
|
|
|
|
const uint8_t fan_index = active_extruder < (FAN_COUNT) ? active_extruder : 0;
|
|
|
|
if (true
|
|
|
|
#if REDUNDANT_PART_COOLING_FAN
|
|
|
|
&& fan_index != REDUNDANT_PART_COOLING_FAN
|
|
|
|
#endif
|
|
|
|
) set_fan_speed(fan_index, ui.material_preset[indh].fan_speed);
|
|
|
|
}
|
2018-10-28 01:30:37 +02:00
|
|
|
#endif
|
2018-11-11 19:16:24 +01:00
|
|
|
ui.return_to_status();
|
2018-10-28 01:30:37 +02:00
|
|
|
}
|
|
|
|
|
2020-07-09 10:11:57 +02:00
|
|
|
#if PREHEAT_COUNT
|
|
|
|
|
|
|
|
#if HAS_TEMP_HOTEND
|
|
|
|
inline void _preheat_end(const uint8_t m, const uint8_t e) { thermalManager.lcd_preheat(e, m, -1); }
|
2020-11-06 01:15:29 +01:00
|
|
|
void do_preheat_end_m() { _preheat_end(editable.int8, 0); }
|
2020-07-09 10:11:57 +02:00
|
|
|
#endif
|
2018-10-28 01:30:37 +02:00
|
|
|
#if HAS_HEATED_BED
|
2021-03-19 22:34:10 +01:00
|
|
|
inline void _preheat_bed(const uint8_t m) { thermalManager.lcd_preheat(0, -1, m); }
|
2018-10-28 01:30:37 +02:00
|
|
|
#endif
|
2021-03-06 21:13:28 +01:00
|
|
|
#if HAS_COOLER
|
|
|
|
inline void _precool_laser(const uint8_t m, const uint8_t e) { thermalManager.lcd_preheat(e, m, -1); }
|
|
|
|
void do_precool_laser_m() { _precool_laser(editable.int8, thermalManager.temp_cooler.target); }
|
|
|
|
#endif
|
2018-10-28 01:30:37 +02:00
|
|
|
|
2020-06-25 02:44:50 +02:00
|
|
|
#if HAS_TEMP_HOTEND && HAS_HEATED_BED
|
2020-11-06 01:15:29 +01:00
|
|
|
inline void _preheat_both(const uint8_t m, const uint8_t e) { thermalManager.lcd_preheat(e, m, m); }
|
2020-06-25 05:43:40 +02:00
|
|
|
|
|
|
|
// Indexed "Preheat ABC" and "Heat Bed" items
|
|
|
|
#define PREHEAT_ITEMS(M,E) do{ \
|
2020-07-09 10:11:57 +02:00
|
|
|
ACTION_ITEM_N_S(E, ui.get_preheat_label(M), MSG_PREHEAT_M_H, []{ _preheat_both(M, MenuItemBase::itemIndex); }); \
|
|
|
|
ACTION_ITEM_N_S(E, ui.get_preheat_label(M), MSG_PREHEAT_M_END_E, []{ _preheat_end(M, MenuItemBase::itemIndex); }); \
|
2020-06-25 02:44:50 +02:00
|
|
|
}while(0)
|
2020-06-25 03:14:58 +02:00
|
|
|
|
|
|
|
#elif HAS_MULTI_HOTEND
|
|
|
|
|
2020-06-25 05:43:40 +02:00
|
|
|
// No heated bed, so just indexed "Preheat ABC" items
|
2020-07-09 10:11:57 +02:00
|
|
|
#define PREHEAT_ITEMS(M,E) ACTION_ITEM_N_S(E, ui.get_preheat_label(M), MSG_PREHEAT_M_H, []{ _preheat_end(M, MenuItemBase::itemIndex); })
|
2020-06-25 03:14:58 +02:00
|
|
|
|
2018-10-28 01:30:37 +02:00
|
|
|
#endif
|
|
|
|
|
2020-07-09 10:11:57 +02:00
|
|
|
#if HAS_MULTI_HOTEND || HAS_HEATED_BED
|
2020-06-25 05:43:40 +02:00
|
|
|
|
2020-07-09 10:11:57 +02:00
|
|
|
// Set editable.int8 to the Material index before entering this menu
|
|
|
|
// because MenuItemBase::itemIndex will be re-used by PREHEAT_ITEMS
|
|
|
|
void menu_preheat_m() {
|
|
|
|
const uint8_t m = editable.int8; // Don't re-use 'editable' in this menu
|
2020-06-25 03:14:58 +02:00
|
|
|
|
2020-07-09 10:11:57 +02:00
|
|
|
START_MENU();
|
|
|
|
BACK_ITEM(MSG_TEMPERATURE);
|
2020-06-25 03:14:58 +02:00
|
|
|
|
2020-07-09 10:11:57 +02:00
|
|
|
#if HOTENDS == 1
|
2018-10-28 01:30:37 +02:00
|
|
|
|
2020-07-09 10:11:57 +02:00
|
|
|
#if HAS_HEATED_BED
|
|
|
|
ACTION_ITEM_S(ui.get_preheat_label(m), MSG_PREHEAT_M, []{ _preheat_both(editable.int8, 0); });
|
|
|
|
ACTION_ITEM_S(ui.get_preheat_label(m), MSG_PREHEAT_M_END, do_preheat_end_m);
|
|
|
|
#else
|
|
|
|
ACTION_ITEM_S(ui.get_preheat_label(m), MSG_PREHEAT_M, do_preheat_end_m);
|
|
|
|
#endif
|
2020-06-25 03:14:58 +02:00
|
|
|
|
2020-07-09 10:11:57 +02:00
|
|
|
#elif HAS_MULTI_HOTEND
|
2020-06-25 03:14:58 +02:00
|
|
|
|
2020-07-09 10:11:57 +02:00
|
|
|
HOTEND_LOOP() PREHEAT_ITEMS(editable.int8, e);
|
|
|
|
ACTION_ITEM_S(ui.get_preheat_label(m), MSG_PREHEAT_M_ALL, []() {
|
|
|
|
HOTEND_LOOP() thermalManager.setTargetHotend(ui.material_preset[editable.int8].hotend_temp, e);
|
2020-11-17 09:37:37 +01:00
|
|
|
TERN(HAS_HEATED_BED, _preheat_bed(editable.int8), ui.return_to_status());
|
2020-07-09 10:11:57 +02:00
|
|
|
});
|
2020-06-25 03:14:58 +02:00
|
|
|
|
2020-07-09 10:11:57 +02:00
|
|
|
#endif
|
2020-06-25 03:14:58 +02:00
|
|
|
|
2020-07-09 10:11:57 +02:00
|
|
|
#if HAS_HEATED_BED
|
|
|
|
ACTION_ITEM_S(ui.get_preheat_label(m), MSG_PREHEAT_M_BEDONLY, []{ _preheat_bed(editable.int8); });
|
|
|
|
#endif
|
2020-06-25 03:14:58 +02:00
|
|
|
|
2020-07-09 10:11:57 +02:00
|
|
|
END_MENU();
|
|
|
|
}
|
2020-06-25 03:14:58 +02:00
|
|
|
|
2020-07-09 10:11:57 +02:00
|
|
|
#endif // HAS_MULTI_HOTEND || HAS_HEATED_BED
|
2020-06-25 03:14:58 +02:00
|
|
|
|
2020-07-09 10:11:57 +02:00
|
|
|
#endif // PREHEAT_COUNT
|
2018-10-28 01:30:37 +02:00
|
|
|
|
2020-07-09 10:11:57 +02:00
|
|
|
#if HAS_TEMP_HOTEND || HAS_HEATED_BED
|
2020-06-25 02:44:50 +02:00
|
|
|
|
2018-10-28 01:30:37 +02:00
|
|
|
void lcd_cooldown() {
|
2019-01-12 07:41:48 +01:00
|
|
|
thermalManager.zero_fan_speeds();
|
2018-10-28 01:30:37 +02:00
|
|
|
thermalManager.disable_all_heaters();
|
2018-11-11 19:16:24 +01:00
|
|
|
ui.return_to_status();
|
2018-10-28 01:30:37 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
#endif // HAS_TEMP_HOTEND || HAS_HEATED_BED
|
|
|
|
|
|
|
|
void menu_temperature() {
|
2020-07-09 10:11:57 +02:00
|
|
|
#if HAS_TEMP_HOTEND || HAS_HEATED_BED
|
2020-04-29 21:52:42 +02:00
|
|
|
bool has_heat = false;
|
2020-07-09 10:11:57 +02:00
|
|
|
#if HAS_TEMP_HOTEND
|
2021-04-24 12:20:55 +02:00
|
|
|
HOTEND_LOOP() if (thermalManager.degTargetHotend(HOTEND_INDEX)) { has_heat = true; break; }
|
2020-07-09 10:11:57 +02:00
|
|
|
#endif
|
2020-04-29 21:52:42 +02:00
|
|
|
#endif
|
|
|
|
|
2021-03-06 21:13:28 +01:00
|
|
|
#if HAS_COOLER
|
|
|
|
if (thermalManager.temp_cooler.target == 0) thermalManager.temp_cooler.target = COOLER_DEFAULT_TEMP;
|
|
|
|
#endif
|
|
|
|
|
2018-10-28 01:30:37 +02:00
|
|
|
START_MENU();
|
2019-10-03 12:38:30 +02:00
|
|
|
BACK_ITEM(MSG_MAIN);
|
2018-10-28 01:30:37 +02:00
|
|
|
|
|
|
|
//
|
|
|
|
// Nozzle:
|
|
|
|
// Nozzle [1-5]:
|
|
|
|
//
|
|
|
|
#if HOTENDS == 1
|
2021-06-28 07:30:11 +02:00
|
|
|
editable.celsius = thermalManager.temp_hotend[0].target;
|
|
|
|
EDIT_ITEM_FAST(int3, MSG_NOZZLE, &editable.celsius, 0, thermalManager.hotend_max_target(0), []{ thermalManager.setTargetHotend(editable.celsius, 0); });
|
2020-04-20 06:56:55 +02:00
|
|
|
#elif HAS_MULTI_HOTEND
|
2021-06-28 07:30:11 +02:00
|
|
|
HOTEND_LOOP() {
|
|
|
|
editable.celsius = thermalManager.temp_hotend[e].target;
|
|
|
|
EDIT_ITEM_FAST_N(int3, e, MSG_NOZZLE_N, &editable.celsius, 0, thermalManager.hotend_max_target(e), []{ thermalManager.setTargetHotend(editable.celsius, MenuItemBase::itemIndex); });
|
|
|
|
}
|
2019-11-15 03:30:30 +01:00
|
|
|
#endif
|
2018-10-28 01:30:37 +02:00
|
|
|
|
2020-04-28 07:21:23 +02:00
|
|
|
#if ENABLED(SINGLENOZZLE_STANDBY_TEMP)
|
|
|
|
LOOP_S_L_N(e, 1, EXTRUDERS)
|
2021-05-01 10:21:18 +02:00
|
|
|
EDIT_ITEM_FAST_N(int3, e, MSG_NOZZLE_STANDBY, &thermalManager.singlenozzle_temp[e], 0, thermalManager.hotend_max_target(0));
|
2019-01-21 06:24:53 +01:00
|
|
|
#endif
|
|
|
|
|
2018-10-28 01:30:37 +02:00
|
|
|
//
|
|
|
|
// Bed:
|
|
|
|
//
|
|
|
|
#if HAS_HEATED_BED
|
2020-04-27 11:41:18 +02:00
|
|
|
EDIT_ITEM_FAST(int3, MSG_BED, &thermalManager.temp_bed.target, 0, BED_MAX_TARGET, thermalManager.start_watching_bed);
|
2019-03-07 09:09:39 +01:00
|
|
|
#endif
|
|
|
|
|
|
|
|
//
|
|
|
|
// Chamber:
|
|
|
|
//
|
|
|
|
#if HAS_HEATED_CHAMBER
|
2021-03-19 22:34:10 +01:00
|
|
|
EDIT_ITEM_FAST(int3, MSG_CHAMBER, &thermalManager.temp_chamber.target, 0, CHAMBER_MAX_TARGET, thermalManager.start_watching_chamber);
|
2018-10-28 01:30:37 +02:00
|
|
|
#endif
|
|
|
|
|
2021-03-06 21:13:28 +01:00
|
|
|
//
|
|
|
|
// Cooler:
|
|
|
|
//
|
|
|
|
#if HAS_COOLER
|
2021-03-29 08:41:56 +02:00
|
|
|
bool cstate = cooler.enabled;
|
|
|
|
EDIT_ITEM(bool, MSG_COOLER_TOGGLE, &cstate, cooler.toggle);
|
2021-03-19 22:34:10 +01:00
|
|
|
EDIT_ITEM_FAST(int3, MSG_COOLER, &thermalManager.temp_cooler.target, COOLER_MIN_TARGET, COOLER_MAX_TARGET, thermalManager.start_watching_cooler);
|
2021-03-06 21:13:28 +01:00
|
|
|
#endif
|
|
|
|
|
2021-03-29 08:41:56 +02:00
|
|
|
//
|
|
|
|
// Flow Meter Safety Shutdown:
|
|
|
|
//
|
|
|
|
#if ENABLED(FLOWMETER_SAFETY)
|
|
|
|
bool fstate = cooler.flowsafety_enabled;
|
|
|
|
EDIT_ITEM(bool, MSG_FLOWMETER_SAFETY, &fstate, cooler.flowsafety_toggle);
|
|
|
|
#endif
|
|
|
|
|
2018-10-28 01:30:37 +02:00
|
|
|
//
|
|
|
|
// Fan Speed:
|
|
|
|
//
|
2020-04-27 11:41:18 +02:00
|
|
|
#if HAS_FAN
|
2020-01-25 09:13:39 +01:00
|
|
|
|
2020-10-04 21:46:55 +02:00
|
|
|
DEFINE_SINGLENOZZLE_ITEM();
|
2020-01-25 09:13:39 +01:00
|
|
|
|
2018-10-28 01:30:37 +02:00
|
|
|
#if HAS_FAN0
|
2020-10-04 21:29:02 +02:00
|
|
|
_FAN_EDIT_ITEMS(0,FIRST_FAN_SPEED);
|
2018-10-28 01:30:37 +02:00
|
|
|
#endif
|
2021-06-15 01:45:54 +02:00
|
|
|
#if HAS_FAN1 && REDUNDANT_PART_COOLING_FAN != 1
|
2020-06-27 01:10:11 +02:00
|
|
|
FAN_EDIT_ITEMS(1);
|
2020-01-25 09:13:39 +01:00
|
|
|
#elif SNFAN(1)
|
|
|
|
singlenozzle_item(1);
|
2018-10-28 01:30:37 +02:00
|
|
|
#endif
|
2021-06-15 01:45:54 +02:00
|
|
|
#if HAS_FAN2 && REDUNDANT_PART_COOLING_FAN != 2
|
2020-06-27 01:10:11 +02:00
|
|
|
FAN_EDIT_ITEMS(2);
|
2020-01-25 09:13:39 +01:00
|
|
|
#elif SNFAN(2)
|
2020-10-04 21:29:02 +02:00
|
|
|
singlenozzle_item(2);
|
2020-01-25 09:13:39 +01:00
|
|
|
#endif
|
2021-06-15 01:45:54 +02:00
|
|
|
#if HAS_FAN3 && REDUNDANT_PART_COOLING_FAN != 3
|
2020-06-27 01:10:11 +02:00
|
|
|
FAN_EDIT_ITEMS(3);
|
2020-01-25 09:13:39 +01:00
|
|
|
#elif SNFAN(3)
|
2020-10-04 21:29:02 +02:00
|
|
|
singlenozzle_item(3);
|
2020-01-25 09:13:39 +01:00
|
|
|
#endif
|
2021-06-15 01:45:54 +02:00
|
|
|
#if HAS_FAN4 && REDUNDANT_PART_COOLING_FAN != 4
|
2020-06-27 01:10:11 +02:00
|
|
|
FAN_EDIT_ITEMS(4);
|
2020-01-25 09:13:39 +01:00
|
|
|
#elif SNFAN(4)
|
2020-10-04 21:29:02 +02:00
|
|
|
singlenozzle_item(4);
|
2018-10-28 01:30:37 +02:00
|
|
|
#endif
|
2021-06-15 01:45:54 +02:00
|
|
|
#if HAS_FAN5 && REDUNDANT_PART_COOLING_FAN != 5
|
2020-06-27 01:10:11 +02:00
|
|
|
FAN_EDIT_ITEMS(5);
|
2020-01-25 09:13:39 +01:00
|
|
|
#elif SNFAN(5)
|
2020-10-04 21:29:02 +02:00
|
|
|
singlenozzle_item(5);
|
2020-01-25 09:13:39 +01:00
|
|
|
#endif
|
2021-06-15 01:45:54 +02:00
|
|
|
#if HAS_FAN6 && REDUNDANT_PART_COOLING_FAN != 6
|
2020-06-27 01:10:11 +02:00
|
|
|
FAN_EDIT_ITEMS(6);
|
2020-01-25 09:13:39 +01:00
|
|
|
#elif SNFAN(6)
|
2020-10-04 21:29:02 +02:00
|
|
|
singlenozzle_item(6);
|
2020-01-25 09:13:39 +01:00
|
|
|
#endif
|
2021-06-15 01:45:54 +02:00
|
|
|
#if HAS_FAN7 && REDUNDANT_PART_COOLING_FAN != 7
|
2020-06-27 01:10:11 +02:00
|
|
|
FAN_EDIT_ITEMS(7);
|
2020-01-25 09:13:39 +01:00
|
|
|
#elif SNFAN(7)
|
2020-10-04 21:29:02 +02:00
|
|
|
singlenozzle_item(7);
|
2020-01-25 09:13:39 +01:00
|
|
|
#endif
|
|
|
|
|
2020-04-27 11:41:18 +02:00
|
|
|
#endif // HAS_FAN
|
2018-10-28 01:30:37 +02:00
|
|
|
|
2020-07-09 10:11:57 +02:00
|
|
|
#if PREHEAT_COUNT
|
2018-10-28 01:30:37 +02:00
|
|
|
//
|
2021-02-25 17:23:17 +01:00
|
|
|
// Preheat for all Materials
|
2018-10-28 01:30:37 +02:00
|
|
|
//
|
2020-07-09 10:11:57 +02:00
|
|
|
LOOP_L_N(m, PREHEAT_COUNT) {
|
|
|
|
editable.int8 = m;
|
|
|
|
#if HOTENDS > 1 || HAS_HEATED_BED
|
|
|
|
SUBMENU_S(ui.get_preheat_label(m), MSG_PREHEAT_M, menu_preheat_m);
|
2021-03-06 21:13:28 +01:00
|
|
|
#elif HAS_HOTEND
|
2020-07-09 10:11:57 +02:00
|
|
|
ACTION_ITEM_S(ui.get_preheat_label(m), MSG_PREHEAT_M, do_preheat_end_m);
|
2020-06-25 02:44:50 +02:00
|
|
|
#endif
|
2020-07-09 10:11:57 +02:00
|
|
|
}
|
|
|
|
#endif
|
2018-10-28 01:30:37 +02:00
|
|
|
|
2020-07-09 10:11:57 +02:00
|
|
|
#if HAS_TEMP_HOTEND || HAS_HEATED_BED
|
2019-05-25 22:16:00 +02:00
|
|
|
//
|
|
|
|
// Cooldown
|
|
|
|
//
|
2021-04-24 12:20:55 +02:00
|
|
|
if (TERN0(HAS_HEATED_BED, thermalManager.degTargetBed())) has_heat = true;
|
2020-04-29 21:52:42 +02:00
|
|
|
if (has_heat) ACTION_ITEM(MSG_COOLDOWN, lcd_cooldown);
|
2020-07-09 10:11:57 +02:00
|
|
|
#endif
|
2019-01-21 06:41:47 +01:00
|
|
|
|
2018-10-28 01:30:37 +02:00
|
|
|
END_MENU();
|
|
|
|
}
|
|
|
|
|
2021-02-25 17:23:17 +01:00
|
|
|
#if ENABLED(PREHEAT_SHORTCUT_MENU_ITEM)
|
|
|
|
|
|
|
|
void menu_preheat_only() {
|
|
|
|
START_MENU();
|
|
|
|
BACK_ITEM(MSG_MAIN);
|
|
|
|
|
|
|
|
LOOP_L_N(m, PREHEAT_COUNT) {
|
|
|
|
editable.int8 = m;
|
|
|
|
#if HOTENDS > 1 || HAS_HEATED_BED
|
|
|
|
SUBMENU_S(ui.get_preheat_label(m), MSG_PREHEAT_M, menu_preheat_m);
|
|
|
|
#else
|
|
|
|
ACTION_ITEM_S(ui.get_preheat_label(m), MSG_PREHEAT_M, do_preheat_end_m);
|
|
|
|
#endif
|
|
|
|
}
|
|
|
|
|
|
|
|
END_MENU();
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
2020-06-25 02:44:50 +02:00
|
|
|
#endif // HAS_LCD_MENU && HAS_TEMPERATURE
|