Browse Source

🩹 Fix EXTRUDERS 0 manual move compile (#24255)

FB4S_WIFI
ellensp 2 years ago
committed by Scott Lahteine
parent
commit
2685119332
  1. 14
      Marlin/src/lcd/menu/menu_motion.cpp

14
Marlin/src/lcd/menu/menu_motion.cpp

@ -35,15 +35,12 @@
#include "../../module/motion.h"
#include "../../gcode/parser.h" // for inch support
#include "../../module/temperature.h"
#if ENABLED(DELTA)
#include "../../module/delta.h"
#endif
#if ENABLED(PREVENT_COLD_EXTRUSION)
#include "../../module/temperature.h"
#endif
#if HAS_LEVELING
#include "../../module/planner.h"
#include "../../feature/bedlevel/bedlevel.h"
@ -210,9 +207,7 @@ void _menu_move_distance(const AxisEnum axis, const screenFunc_t func, const int
}
inline void _menu_move_distance_e_maybe() {
#if ENABLED(PREVENT_COLD_EXTRUSION)
const bool too_cold = thermalManager.tooColdToExtrude(active_extruder);
if (too_cold) {
if (thermalManager.tooColdToExtrude(active_extruder)) {
ui.goto_screen([]{
MenuItem_confirm::select_screen(
GET_TEXT_F(MSG_BUTTON_PROCEED), GET_TEXT_F(MSG_BACK),
@ -220,13 +215,12 @@ void _menu_move_distance(const AxisEnum axis, const screenFunc_t func, const int
GET_TEXT_F(MSG_HOTEND_TOO_COLD), (const char *)nullptr, F("!")
);
});
return;
}
#endif
else
_goto_menu_move_distance_e();
}
#endif // E_MANUAL
#endif
void menu_move() {
START_MENU();

Loading…
Cancel
Save