Patch ADJUST_DELTA macro for SCARA

This commit is contained in:
Scott Lahteine 2016-10-10 17:05:11 -05:00
parent 5ce5a9c822
commit 029824bc49

View File

@ -460,13 +460,17 @@ static uint8_t target_extruder;
#endif #endif
#if ENABLED(AUTO_BED_LEVELING_BILINEAR) #if ENABLED(AUTO_BED_LEVELING_BILINEAR)
#define ADJUST_DELTA(V) \ #if ENABLED(DELTA)
if (planner.abl_enabled) { \ #define ADJUST_DELTA(V) \
const float zadj = bilinear_z_offset(V); \ if (planner.abl_enabled) { \
delta[A_AXIS] += zadj; \ const float zadj = bilinear_z_offset(V); \
delta[B_AXIS] += zadj; \ delta[A_AXIS] += zadj; \
delta[C_AXIS] += zadj; \ delta[B_AXIS] += zadj; \
} delta[C_AXIS] += zadj; \
}
#else
#define ADJUST_DELTA(V) if (planner.abl_enabled) { delta[Z_AXIS] += bilinear_z_offset(V); }
#endif
#elif IS_KINEMATIC #elif IS_KINEMATIC
#define ADJUST_DELTA(V) NOOP #define ADJUST_DELTA(V) NOOP
#endif #endif