Browse Source

Fix broken G29 W I J

pull/1/head
Scott Lahteine 7 years ago
parent
commit
34160806c0
  1. 9
      Marlin/src/gcode/bedlevel/abl/G29.cpp

9
Marlin/src/gcode/bedlevel/abl/G29.cpp

@ -260,7 +260,8 @@ void GcodeSuite::G29() {
#if ENABLED(AUTO_BED_LEVELING_BILINEAR)
if (parser.seen('W')) {
const bool seen_w = parser.seen('W');
if (seen_w) {
if (!leveling_is_valid()) {
SERIAL_ERROR_START();
SERIAL_ERRORLNPGM("No bilinear grid");
@ -298,10 +299,14 @@ void GcodeSuite::G29() {
return;
} // parser.seen('W')
#else
constexpr bool seen_w = false;
#endif
// Jettison bed leveling data
if (parser.seen('J')) {
if (!seen_w && parser.seen('J')) {
reset_bed_level();
return;
}

Loading…
Cancel
Save