mirror of
https://github.com/MarlinFirmware/Marlin.git
synced 2024-11-26 13:25:54 +00:00
🩹 Fix EXTRUDERS 0 manual move compile (#24255)
Co-authored-by: Scott Lahteine <github@thinkyhead.com>
This commit is contained in:
parent
1a555b3812
commit
7dd34848b6
@ -35,15 +35,12 @@
|
|||||||
|
|
||||||
#include "../../module/motion.h"
|
#include "../../module/motion.h"
|
||||||
#include "../../gcode/parser.h" // for inch support
|
#include "../../gcode/parser.h" // for inch support
|
||||||
|
#include "../../module/temperature.h"
|
||||||
|
|
||||||
#if ENABLED(DELTA)
|
#if ENABLED(DELTA)
|
||||||
#include "../../module/delta.h"
|
#include "../../module/delta.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if ENABLED(PREVENT_COLD_EXTRUSION)
|
|
||||||
#include "../../module/temperature.h"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#if HAS_LEVELING
|
#if HAS_LEVELING
|
||||||
#include "../../module/planner.h"
|
#include "../../module/planner.h"
|
||||||
#include "../../feature/bedlevel/bedlevel.h"
|
#include "../../feature/bedlevel/bedlevel.h"
|
||||||
@ -222,23 +219,20 @@ void _menu_move_distance(const AxisEnum axis, const screenFunc_t func, const int
|
|||||||
}
|
}
|
||||||
|
|
||||||
inline void _menu_move_distance_e_maybe() {
|
inline void _menu_move_distance_e_maybe() {
|
||||||
#if ENABLED(PREVENT_COLD_EXTRUSION)
|
if (thermalManager.tooColdToExtrude(active_extruder)) {
|
||||||
const bool too_cold = thermalManager.tooColdToExtrude(active_extruder);
|
ui.goto_screen([]{
|
||||||
if (too_cold) {
|
MenuItem_confirm::select_screen(
|
||||||
ui.goto_screen([]{
|
GET_TEXT_F(MSG_BUTTON_PROCEED), GET_TEXT_F(MSG_BACK),
|
||||||
MenuItem_confirm::select_screen(
|
_goto_menu_move_distance_e, nullptr,
|
||||||
GET_TEXT_F(MSG_BUTTON_PROCEED), GET_TEXT_F(MSG_BACK),
|
GET_TEXT_F(MSG_HOTEND_TOO_COLD), (const char *)nullptr, F("!")
|
||||||
_goto_menu_move_distance_e, nullptr,
|
);
|
||||||
GET_TEXT_F(MSG_HOTEND_TOO_COLD), (const char *)nullptr, F("!")
|
});
|
||||||
);
|
}
|
||||||
});
|
else
|
||||||
return;
|
_goto_menu_move_distance_e();
|
||||||
}
|
|
||||||
#endif
|
|
||||||
_goto_menu_move_distance_e();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif // E_MANUAL
|
#endif
|
||||||
|
|
||||||
void menu_move() {
|
void menu_move() {
|
||||||
START_MENU();
|
START_MENU();
|
||||||
|
Loading…
Reference in New Issue
Block a user