|
|
|
@ -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;
|
|
|
|
|
}
|
|
|
|
|