Fix compile errors

This commit is contained in:
InsanityAutomation
2020-09-17 11:16:01 -04:00
parent f4e26c785f
commit 4fdded0e2d
+11 -8
View File
@@ -22,10 +22,6 @@
#include "../../inc/MarlinConfigPre.h"
#if ENABLED(Z_STEPPER_AUTO_ALIGN)
#include "../../feature/z_stepper_align.h"
#include "../gcode.h"
#include "../../module/planner.h"
#include "../../module/stepper.h"
@@ -41,13 +37,20 @@
#include "../../module/tool_change.h"
#endif
#if ENABLED(Z_STEPPER_ALIGN_KNOWN_STEPPER_POSITIONS)
#include "../../libs/least_squares_fit.h"
#endif
#define DEBUG_OUT ENABLED(DEBUG_LEVELING_FEATURE)
#include "../../core/debug_out.h"
#if ENABLED(Z_STEPPER_AUTO_ALIGN)
#include "../../feature/z_stepper_align.h"
#if ENABLED(Z_STEPPER_ALIGN_KNOWN_STEPPER_POSITIONS)
#include "../../libs/least_squares_fit.h"
#endif
/**
* G34: Z-Stepper automatic alignment
*
@@ -513,7 +516,7 @@ void GcodeSuite::M422() {
void GcodeSuite::G34() {
if (axis_unhomed_error()) return;
if (homing_needed()) return;
TEMPORARY_SOFT_ENDSTOP_STATE(false);
TEMPORARY_BED_LEVELING_STATE(false);