Skip to content

Commit 5b8be44

Browse files
drawlerrthinkyhead
authored andcommitted
🚸 Echo G30 out-of-bounds (MarlinFirmware#25671)
1 parent df7d13a commit 5b8be44

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

Marlin/src/gcode/probe/G30.cpp

Lines changed: 3 additions & 8 deletions
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 current XY
4643
*
@@ -100,10 +97,8 @@ void GcodeSuite::G30() {
10097
report_current_position();
10198
}
10299
else {
103-
#if ENABLED(DWIN_LCD_PROUI)
104-
SERIAL_ECHOLNF(GET_EN_TEXT_F(MSG_ZPROBE_OUT));
105-
LCD_MESSAGE(MSG_ZPROBE_OUT);
106-
#endif
100+
SERIAL_ECHOLNF(GET_EN_TEXT_F(MSG_ZPROBE_OUT));
101+
LCD_MESSAGE(MSG_ZPROBE_OUT);
107102
}
108103

109104
// Restore the active tool

0 commit comments

Comments
 (0)