Merge pull request #9434 from thinkyhead/bf1_fix_G29_W_I_J_Z
[1.1.x] Fix broken G29 W I J
This commit is contained in:
commit
ec9a5b7157
@ -4490,7 +4490,8 @@ void home_all_axes() { gcode_G28(true); }
|
|||||||
|
|
||||||
#if ENABLED(AUTO_BED_LEVELING_BILINEAR)
|
#if ENABLED(AUTO_BED_LEVELING_BILINEAR)
|
||||||
|
|
||||||
if (parser.seen('W')) {
|
const bool seen_w = parser.seen('W');
|
||||||
|
if (seen_w) {
|
||||||
if (!leveling_is_valid()) {
|
if (!leveling_is_valid()) {
|
||||||
SERIAL_ERROR_START();
|
SERIAL_ERROR_START();
|
||||||
SERIAL_ERRORLNPGM("No bilinear grid");
|
SERIAL_ERRORLNPGM("No bilinear grid");
|
||||||
@ -4528,10 +4529,14 @@ void home_all_axes() { gcode_G28(true); }
|
|||||||
return;
|
return;
|
||||||
} // parser.seen('W')
|
} // parser.seen('W')
|
||||||
|
|
||||||
|
#else
|
||||||
|
|
||||||
|
constexpr bool seen_w = false;
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// Jettison bed leveling data
|
// Jettison bed leveling data
|
||||||
if (parser.seen('J')) {
|
if (!seen_w && parser.seen('J')) {
|
||||||
reset_bed_level();
|
reset_bed_level();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user