Fix UBL/Homing (#11566)
This commit is contained in:
		
							parent
							
								
									aae4c67e5d
								
							
						
					
					
						commit
						db30650731
					
				| @ -2546,11 +2546,11 @@ void Planner::_set_position_mm(const float &a, const float &b, const float &c, c | |||||||
|   #endif |   #endif | ||||||
|   position[A_AXIS] = LROUND(a * axis_steps_per_mm[A_AXIS]); |   position[A_AXIS] = LROUND(a * axis_steps_per_mm[A_AXIS]); | ||||||
|   position[B_AXIS] = LROUND(b * axis_steps_per_mm[B_AXIS]); |   position[B_AXIS] = LROUND(b * axis_steps_per_mm[B_AXIS]); | ||||||
|   position[C_AXIS] = LROUND(axis_steps_per_mm[C_AXIS] * (c + |   position[C_AXIS] = LROUND(axis_steps_per_mm[C_AXIS] * (c +( | ||||||
|     #if !IS_KINEMATIC && ENABLED(AUTO_BED_LEVELING_UBL) |     #if !IS_KINEMATIC && ENABLED(AUTO_BED_LEVELING_UBL) | ||||||
|       leveling_active ? ubl.get_z_correction(a, b) : |       leveling_active ? ubl.get_z_correction(a, b) : | ||||||
|     #endif |     #endif | ||||||
|     0 |     0) | ||||||
|   )); |   )); | ||||||
|   position[E_AXIS] = LROUND(e * axis_steps_per_mm[_EINDEX]); |   position[E_AXIS] = LROUND(e * axis_steps_per_mm[_EINDEX]); | ||||||
|   #if HAS_POSITION_FLOAT |   #if HAS_POSITION_FLOAT | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user