diff --git a/Marlin/src/gcode/bedlevel/abl/G29.cpp b/Marlin/src/gcode/bedlevel/abl/G29.cpp index 0cb57ea0b5..892d71030b 100644 --- a/Marlin/src/gcode/bedlevel/abl/G29.cpp +++ b/Marlin/src/gcode/bedlevel/abl/G29.cpp @@ -34,6 +34,7 @@ #include "../../../module/planner.h" #include "../../../module/stepper.h" #include "../../../module/probe.h" +#include "../../queue.h" #if ENABLED(LCD_BED_LEVELING) && ENABLED(PROBE_MANUALLY) #include "../../../lcd/ultralcd.h" @@ -344,7 +345,7 @@ void GcodeSuite::G29() { right_probe_bed_position = parser.seenval('R') ? (int)RAW_X_POSITION(parser.value_linear_units()) : RIGHT_PROBE_BED_POSITION; front_probe_bed_position = parser.seenval('F') ? (int)RAW_Y_POSITION(parser.value_linear_units()) : FRONT_PROBE_BED_POSITION; back_probe_bed_position = parser.seenval('B') ? (int)RAW_Y_POSITION(parser.value_linear_units()) : BACK_PROBE_BED_POSITION; - + const bool left_out_l = left_probe_bed_position < MIN_PROBE_X, left_out = left_out_l || left_probe_bed_position > right_probe_bed_position - (MIN_PROBE_EDGE), right_out_r = right_probe_bed_position > MAX_PROBE_X, diff --git a/Marlin/src/gcode/calibrate/M48.cpp b/Marlin/src/gcode/calibrate/M48.cpp index df9b01b7ae..766d3fb91e 100644 --- a/Marlin/src/gcode/calibrate/M48.cpp +++ b/Marlin/src/gcode/calibrate/M48.cpp @@ -28,9 +28,9 @@ #include "../../module/motion.h" #include "../../module/probe.h" -#if DISABLED(DELTA) - #include "../../feature/bedlevel/bedlevel.h" -#endif + +#include "../../feature/bedlevel/bedlevel.h" + #if HAS_LEVELING #include "../../module/planner.h" @@ -49,10 +49,7 @@ * L = Number of legs of movement before probe * S = Schizoid (Or Star if you prefer) * - * This function assumes the bed has been homed. Specifically, that a G28 command - * as been issued prior to invoking the M48 Z probe repeatability measurement function. - * Any information generated by a prior G29 Bed leveling command will be lost and need to be - * regenerated. + * This function requires the machine to be homed before invocation. */ void GcodeSuite::M48() {