Skip to content

Commit 6566cbc

Browse files
drawlerrAndy-Big
authored andcommitted
🚸 Echo G30 out-of-bounds (MarlinFirmware#25671)
1 parent e8c6637 commit 6566cbc

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
@@ -29,6 +29,7 @@
2929
#include "../../module/probe.h"
3030
#include "../../feature/bedlevel/bedlevel.h"
3131
#include "../../module/settings.h"
32+
#include "../../lcd/marlinui.h"
3233

3334
#if HAS_PTC
3435
#include "../../feature/probe_temp_comp.h"
@@ -38,10 +39,6 @@
3839
#include "../../module/tool_change.h"
3940
#endif
4041

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

115110
probe.use_probing_tool(false);

0 commit comments

Comments
 (0)