MarlinFirmware / Marlin

Marlin is an optimized firmware for RepRap 3D printers based on the Arduino platform. Many commercial 3D printers come with Marlin installed. Check with your vendor if you need source code for your specific machine.
https://marlinfw.org
GNU General Public License v3.0
16.34k stars 19.25k forks source link

Fix Z Pos corruption on use of default z_measured_min #27516

Closed InsanityAutomation closed 1 week ago

InsanityAutomation commented 2 weeks ago

When G34 failed on the first probe attempt and home after G34 was not enabled, a default value of 100k was still loaded in z_measured_min causing the Z position to be overwritten with a drastically out of bounds correction. The prevents position adjustment on an error escape, adds additional debug statements, and resolves an iterative clamping error that would cause successive runs to fail probing.