Skip to content

Commit

Permalink
🚸 Echo G30 out-of-bounds (MarlinFirmware#25671)
Browse files Browse the repository at this point in the history
  • Loading branch information
drawlerr authored and Andy-Big committed Jul 14, 2023
1 parent e8c6637 commit 6566cbc
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions Marlin/src/gcode/probe/G30.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
#include "../../module/probe.h"
#include "../../feature/bedlevel/bedlevel.h"
#include "../../module/settings.h"
#include "../../lcd/marlinui.h"

#if HAS_PTC
#include "../../feature/probe_temp_comp.h"
Expand All @@ -38,10 +39,6 @@
#include "../../module/tool_change.h"
#endif

#if EITHER(DWIN_LCD_PROUI, DWIN_CREALITY_LCD_JYERSUI)
#include "../../lcd/marlinui.h"
#endif

/**
* G30: Do a single Z probe at the given XY (default: current)
*
Expand Down Expand Up @@ -106,10 +103,8 @@ void GcodeSuite::G30() {
report_current_position();
}
else {
#if ENABLED(DWIN_LCD_PROUI)
SERIAL_ECHOLNF(GET_EN_TEXT_F(MSG_ZPROBE_OUT));
LCD_MESSAGE(MSG_ZPROBE_OUT);
#endif
SERIAL_ECHOLNF(GET_EN_TEXT_F(MSG_ZPROBE_OUT));
LCD_MESSAGE(MSG_ZPROBE_OUT);
}

probe.use_probing_tool(false);
Expand Down

0 comments on commit 6566cbc

Please sign in to comment.