Fewer includes of vector_3.h

This commit is contained in:
Scott Lahteine 2018-05-01 04:20:45 -05:00
parent 94857b59c9
commit 32b6a3ad12
5 changed files with 5 additions and 10 deletions

View File

@ -271,7 +271,7 @@
#include "power.h"
#endif
#if HAS_ABL
#if ABL_PLANAR
#include "vector_3.h"
#if ENABLED(AUTO_BED_LEVELING_LINEAR)
#include "least_squares_fit.h"
@ -773,12 +773,6 @@ void report_current_position_detail();
print_xyz(prefix, suffix, xyz[X_AXIS], xyz[Y_AXIS], xyz[Z_AXIS]);
}
#if HAS_ABL
void print_xyz(const char* prefix, const char* suffix, const vector_3 &xyz) {
print_xyz(prefix, suffix, xyz.x, xyz.y, xyz.z);
}
#endif
#define DEBUG_POS(SUFFIX,VAR) do { \
print_xyz(PSTR(" " STRINGIFY(VAR) "="), PSTR(" : " SUFFIX "\n"), VAR); }while(0)
#endif

View File

@ -36,7 +36,7 @@
#include "enum.h"
#include "Marlin.h"
#if HAS_ABL
#if ABL_PLANAR
#include "vector_3.h"
#endif

View File

@ -30,7 +30,6 @@
#include "Marlin.h"
#include "planner.h"
#include "math.h"
#include "vector_3.h"
#include "configuration_store.h"
#define UBL_VERSION "1.01"

View File

@ -1491,6 +1491,8 @@
#if HAS_BED_PROBE
#include "vector_3.h"
void unified_bed_leveling::tilt_mesh_based_on_probed_grid(const bool do_3_pt_leveling) {
constexpr int16_t x_min = max(MIN_PROBE_X, MESH_MIN_X),
x_max = min(MAX_PROBE_X, MESH_MAX_X),

View File

@ -41,7 +41,7 @@
#include "MarlinConfig.h"
#if HAS_ABL
#if ABL_PLANAR || (HAS_BED_PROBE && ENABLED(AUTO_BED_LEVELING_UBL))
#include "vector_3.h"
#include "serial.h"