protoloft / klipper_z_calibration

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

Add SET_SWITCH_OFFSET command #138

Closed Neristance closed 5 months ago

Neristance commented 8 months ago

Hi,

I'm not sure if someone else has the same usecase but for me the calculate was not working so great and I wanted a bit faster way to trial run and nail down the switch_offset so I added a custom command with which you can run a gcode to update the used value and then test without restarting.

Usage is SET_SWITCH_OFFSET OFFSET=x.x

TitusLabs commented 5 months ago

Hi, that's a good change :+1: I never had the need for it, as I had done it with the additional z-offset in my PRINT_START macro from the slicer. But you have inspired me. However, I have decided on a different solution. You can now add a switch offset to CALIBRATE_Z with SWITCH_OFFSET, which is then used for the calibration. I hope you like it too. So, sorry for closing your PR!