Skip to content

Commit 4114014

Browse files
drawlerrEvilGremlin
authored andcommitted
🚸 Echo G30 out-of-bounds (MarlinFirmware#25671)
1 parent 24b8ea9 commit 4114014

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

Marlin/src/gcode/probe/G30.cpp

+3-8
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
#include "../../module/motion.h"
2929
#include "../../module/probe.h"
3030
#include "../../feature/bedlevel/bedlevel.h"
31+
#include "../../lcd/marlinui.h"
3132

3233
#if HAS_PTC
3334
#include "../../feature/probe_temp_comp.h"
@@ -37,10 +38,6 @@
3738
#include "../../module/tool_change.h"
3839
#endif
3940

40-
#if EITHER(DWIN_LCD_PROUI, DWIN_CREALITY_LCD_JYERSUI)
41-
#include "../../lcd/marlinui.h"
42-
#endif
43-
4441
/**
4542
* G30: Do a single Z probe at the given XY (default: current)
4643
*
@@ -105,10 +102,8 @@ void GcodeSuite::G30() {
105102
report_current_position();
106103
}
107104
else {
108-
#if ENABLED(DWIN_LCD_PROUI)
109-
SERIAL_ECHOLNF(GET_EN_TEXT_F(MSG_ZPROBE_OUT));
110-
LCD_MESSAGE(MSG_ZPROBE_OUT);
111-
#endif
105+
SERIAL_ECHOLNF(GET_EN_TEXT_F(MSG_ZPROBE_OUT));
106+
LCD_MESSAGE(MSG_ZPROBE_OUT);
112107
}
113108

114109
probe.use_probing_tool(false);

0 commit comments

Comments
 (0)