|
@@ -7030,20 +7030,21 @@ void quickstop_stepper() {
|
7030
|
7030
|
if (code_seen('Z')) set_z_fade_height(code_value_linear_units());
|
7031
|
7031
|
#endif
|
7032
|
7032
|
|
7033
|
|
- if (to_enable && !(
|
|
7033
|
+ const bool new_status =
|
7034
|
7034
|
#if ENABLED(MESH_BED_LEVELING)
|
7035
|
7035
|
mbl.active()
|
7036
|
7036
|
#else
|
7037
|
7037
|
planner.abl_enabled
|
7038
|
7038
|
#endif
|
7039
|
|
- ) ) {
|
7040
|
|
- to_enable = false;
|
|
7039
|
+ ;
|
|
7040
|
+
|
|
7041
|
+ if (to_enable && !new_status) {
|
7041
|
7042
|
SERIAL_ERROR_START;
|
7042
|
7043
|
SERIAL_ERRORLNPGM(MSG_ERR_M420_FAILED);
|
7043
|
7044
|
}
|
7044
|
7045
|
|
7045
|
7046
|
SERIAL_ECHO_START;
|
7046
|
|
- SERIAL_ECHOLNPAIR("Bed Leveling ", to_enable ? MSG_ON : MSG_OFF);
|
|
7047
|
+ SERIAL_ECHOLNPAIR("Bed Leveling ", new_status ? MSG_ON : MSG_OFF);
|
7047
|
7048
|
|
7048
|
7049
|
// V to print the matrix or mesh
|
7049
|
7050
|
if (code_seen('V')) {
|