Fixing bilinear Z offset and G29 Z
The fix in #6251 for bilinear Z offset was flawed and broke the Z parameter of G29 for bilinear levelling. This is reverted and a different fix is used for the double-addition of the Z-probe offset to the bilinear correction grid.
This commit is contained in:
		
							parent
							
								
									034e912c85
								
							
						
					
					
						commit
						f1d50ac1dc
					
				| @ -4159,9 +4159,6 @@ inline void gcode_G28() { | |||||||
|       #elif ENABLED(AUTO_BED_LEVELING_BILINEAR) |       #elif ENABLED(AUTO_BED_LEVELING_BILINEAR) | ||||||
| 
 | 
 | ||||||
|         zoffset = code_seen('Z') ? code_value_axis_units(Z_AXIS) : 0; |         zoffset = code_seen('Z') ? code_value_axis_units(Z_AXIS) : 0; | ||||||
|         #if HAS_BED_PROBE |  | ||||||
|           zoffset += zprobe_zoffset; |  | ||||||
|         #endif |  | ||||||
| 
 | 
 | ||||||
|       #endif |       #endif | ||||||
| 
 | 
 | ||||||
| @ -4336,7 +4333,7 @@ inline void gcode_G28() { | |||||||
| 
 | 
 | ||||||
|         #elif ENABLED(AUTO_BED_LEVELING_BILINEAR) |         #elif ENABLED(AUTO_BED_LEVELING_BILINEAR) | ||||||
| 
 | 
 | ||||||
|           bed_level_grid[xCount][yCount] = measured_z; |           bed_level_grid[xCount][yCount] = measured_z + zoffset; | ||||||
| 
 | 
 | ||||||
|         #elif ENABLED(AUTO_BED_LEVELING_3POINT) |         #elif ENABLED(AUTO_BED_LEVELING_3POINT) | ||||||
| 
 | 
 | ||||||
| @ -4508,7 +4505,7 @@ inline void gcode_G28() { | |||||||
| 
 | 
 | ||||||
|             #elif ENABLED(AUTO_BED_LEVELING_BILINEAR) |             #elif ENABLED(AUTO_BED_LEVELING_BILINEAR) | ||||||
| 
 | 
 | ||||||
|               bed_level_grid[xCount][yCount] = measured_z; |               bed_level_grid[xCount][yCount] = measured_z + zoffset; | ||||||
| 
 | 
 | ||||||
|             #endif |             #endif | ||||||
| 
 | 
 | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user