Use _BV macros, patch up others
This commit is contained in:
@ -1608,8 +1608,8 @@ static void setup_for_endstop_move() {
|
||||
|
||||
enum ProbeAction {
|
||||
ProbeStay = 0,
|
||||
ProbeDeploy = BIT(0),
|
||||
ProbeStow = BIT(1),
|
||||
ProbeDeploy = _BV(0),
|
||||
ProbeStow = _BV(1),
|
||||
ProbeDeployAndStow = (ProbeDeploy | ProbeStow)
|
||||
};
|
||||
|
||||
@ -6461,33 +6461,33 @@ void mesh_plan_buffer_line(float x, float y, float z, const float e, float feed_
|
||||
return;
|
||||
}
|
||||
float nx, ny, ne, normalized_dist;
|
||||
if (ix > pix && (x_splits) & BIT(ix)) {
|
||||
if (ix > pix && TEST(x_splits, ix)) {
|
||||
nx = mbl.get_x(ix);
|
||||
normalized_dist = (nx - current_position[X_AXIS]) / (x - current_position[X_AXIS]);
|
||||
ny = current_position[Y_AXIS] + (y - current_position[Y_AXIS]) * normalized_dist;
|
||||
ne = current_position[E_AXIS] + (e - current_position[E_AXIS]) * normalized_dist;
|
||||
x_splits ^= BIT(ix);
|
||||
CBI(x_splits, ix);
|
||||
}
|
||||
else if (ix < pix && (x_splits) & BIT(pix)) {
|
||||
else if (ix < pix && TEST(x_splits, pix)) {
|
||||
nx = mbl.get_x(pix);
|
||||
normalized_dist = (nx - current_position[X_AXIS]) / (x - current_position[X_AXIS]);
|
||||
ny = current_position[Y_AXIS] + (y - current_position[Y_AXIS]) * normalized_dist;
|
||||
ne = current_position[E_AXIS] + (e - current_position[E_AXIS]) * normalized_dist;
|
||||
x_splits ^= BIT(pix);
|
||||
CBI(x_splits, pix);
|
||||
}
|
||||
else if (iy > piy && (y_splits) & BIT(iy)) {
|
||||
else if (iy > piy && TEST(y_splits, iy)) {
|
||||
ny = mbl.get_y(iy);
|
||||
normalized_dist = (ny - current_position[Y_AXIS]) / (y - current_position[Y_AXIS]);
|
||||
nx = current_position[X_AXIS] + (x - current_position[X_AXIS]) * normalized_dist;
|
||||
ne = current_position[E_AXIS] + (e - current_position[E_AXIS]) * normalized_dist;
|
||||
y_splits ^= BIT(iy);
|
||||
CBI(y_splits, iy);
|
||||
}
|
||||
else if (iy < piy && (y_splits) & BIT(piy)) {
|
||||
else if (iy < piy && TEST(y_splits, piy)) {
|
||||
ny = mbl.get_y(piy);
|
||||
normalized_dist = (ny - current_position[Y_AXIS]) / (y - current_position[Y_AXIS]);
|
||||
nx = current_position[X_AXIS] + (x - current_position[X_AXIS]) * normalized_dist;
|
||||
ne = current_position[E_AXIS] + (e - current_position[E_AXIS]) * normalized_dist;
|
||||
y_splits ^= BIT(piy);
|
||||
CBI(y_splits, piy);
|
||||
}
|
||||
else {
|
||||
// Already split on a border
|
||||
|
Reference in New Issue
Block a user