Klipper3d / klipper

Klipper is a 3d-printer firmware
GNU General Public License v3.0
9.33k stars 5.28k forks source link

bed_screws: Reset on move error #6387

Closed pedrolamas closed 11 months ago

pedrolamas commented 11 months ago

This is a follow up on this issue.

If the stepper_x.position_max or stepper_y.position_max values are smaller than those in the bed_screws entries, when one starts the BED_SCREWS_ADJUST tool, it will throw a "Move out of range" error, but the tool will be stuck in a running state, yet nothing works until we restart Klipper.

The fix here is to reset the state of the tool in case of error.

KevinOConnor commented 11 months ago

Thanks.

-Kevin