protoloft / klipper_z_calibration

Klipper plugin for self-calibrating z-offset
GNU General Public License v3.0
1.05k stars 151 forks source link

suggest adding a note about GCODE_RESTORE_STATE #41

Closed garyd9 closed 2 years ago

garyd9 commented 2 years ago

It appears that if a person has a print_start that saves the gcode state (SAVE_GCODE_STATE name=whatever), does a CALIBRATE_Z, and then follows the CALIBRATE_Z with a restoration of gcode state (RESTORE_GCODE_STATE name=whatever), that the offsets set by CALIBRATE_Z are lost.

I'd suggest adding a note in the documentation that calls to CALIBRATE_Z should be done outside of SAVE/RESTORE gcode state.

TitusLabs commented 2 years ago

Yes, this is correct! I thought, that I did it somewhere... I will add it, thanks :+1:

TitusLabs commented 2 years ago

done!