Rename ENABLE_AUTO_BED_LEVELING
With the introduction of the #if ENABLED(…) reads better than
This commit is contained in:
@ -77,14 +77,14 @@ float max_e_jerk;
|
||||
float mintravelfeedrate;
|
||||
unsigned long axis_steps_per_sqr_second[NUM_AXIS];
|
||||
|
||||
#if ENABLED(ENABLE_AUTO_BED_LEVELING)
|
||||
#if ENABLED(AUTO_BED_LEVELING_FEATURE)
|
||||
// Transform required to compensate for bed level
|
||||
matrix_3x3 plan_bed_level_matrix = {
|
||||
1.0, 0.0, 0.0,
|
||||
0.0, 1.0, 0.0,
|
||||
0.0, 0.0, 1.0
|
||||
};
|
||||
#endif // ENABLE_AUTO_BED_LEVELING
|
||||
#endif // AUTO_BED_LEVELING_FEATURE
|
||||
|
||||
#if ENABLED(AUTOTEMP)
|
||||
float autotemp_max = 250;
|
||||
@ -474,11 +474,11 @@ float junction_deviation = 0.1;
|
||||
// Add a new linear movement to the buffer. steps[X_AXIS], _y and _z is the absolute position in
|
||||
// mm. Microseconds specify how many microseconds the move should take to perform. To aid acceleration
|
||||
// calculation the caller must also provide the physical length of the line in millimeters.
|
||||
#if ENABLED(ENABLE_AUTO_BED_LEVELING) || ENABLED(MESH_BED_LEVELING)
|
||||
#if ENABLED(AUTO_BED_LEVELING_FEATURE) || ENABLED(MESH_BED_LEVELING)
|
||||
void plan_buffer_line(float x, float y, float z, const float &e, float feed_rate, const uint8_t extruder)
|
||||
#else
|
||||
void plan_buffer_line(const float &x, const float &y, const float &z, const float &e, float feed_rate, const uint8_t extruder)
|
||||
#endif // ENABLE_AUTO_BED_LEVELING
|
||||
#endif // AUTO_BED_LEVELING_FEATURE
|
||||
{
|
||||
// Calculate the buffer head after we push this byte
|
||||
int next_buffer_head = next_block_index(block_buffer_head);
|
||||
@ -489,7 +489,7 @@ float junction_deviation = 0.1;
|
||||
|
||||
#if ENABLED(MESH_BED_LEVELING)
|
||||
if (mbl.active) z += mbl.get_z(x, y);
|
||||
#elif ENABLED(ENABLE_AUTO_BED_LEVELING)
|
||||
#elif ENABLED(AUTO_BED_LEVELING_FEATURE)
|
||||
apply_rotation_xyz(plan_bed_level_matrix, x, y, z);
|
||||
#endif
|
||||
|
||||
@ -993,7 +993,7 @@ float junction_deviation = 0.1;
|
||||
|
||||
} // plan_buffer_line()
|
||||
|
||||
#if ENABLED(ENABLE_AUTO_BED_LEVELING) && DISABLED(DELTA)
|
||||
#if ENABLED(AUTO_BED_LEVELING_FEATURE) && DISABLED(DELTA)
|
||||
vector_3 plan_get_position() {
|
||||
vector_3 position = vector_3(st_get_position_mm(X_AXIS), st_get_position_mm(Y_AXIS), st_get_position_mm(Z_AXIS));
|
||||
|
||||
@ -1006,17 +1006,17 @@ float junction_deviation = 0.1;
|
||||
|
||||
return position;
|
||||
}
|
||||
#endif // ENABLE_AUTO_BED_LEVELING && !DELTA
|
||||
#endif // AUTO_BED_LEVELING_FEATURE && !DELTA
|
||||
|
||||
#if ENABLED(ENABLE_AUTO_BED_LEVELING) || ENABLED(MESH_BED_LEVELING)
|
||||
#if ENABLED(AUTO_BED_LEVELING_FEATURE) || ENABLED(MESH_BED_LEVELING)
|
||||
void plan_set_position(float x, float y, float z, const float &e)
|
||||
#else
|
||||
void plan_set_position(const float &x, const float &y, const float &z, const float &e)
|
||||
#endif // ENABLE_AUTO_BED_LEVELING || MESH_BED_LEVELING
|
||||
#endif // AUTO_BED_LEVELING_FEATURE || MESH_BED_LEVELING
|
||||
{
|
||||
#if ENABLED(MESH_BED_LEVELING)
|
||||
if (mbl.active) z += mbl.get_z(x, y);
|
||||
#elif ENABLED(ENABLE_AUTO_BED_LEVELING)
|
||||
#elif ENABLED(AUTO_BED_LEVELING_FEATURE)
|
||||
apply_rotation_xyz(plan_bed_level_matrix, x, y, z);
|
||||
#endif
|
||||
|
||||
|
Reference in New Issue
Block a user