OpenNeptune3D / OpenNept4une

Transform your Neptune 4 3D printer with OpenNept4une, a collection of scripts designed to replace the manufacturer's software, reverting to the original open-source projects for enhanced performance, reliability, and features.
GNU General Public License v3.0
362 stars 40 forks source link

Add conditional G28 macro. #180

Closed TheMeanCanEHdian closed 6 months ago

TheMeanCanEHdian commented 6 months ago

Klipper keeps track of the state of the homed axes in toolhead status.

This pull request adds a macro called CG28 that only runs a G28 if all three axes are not already in the toolhead homed_axes, reducing excessive homing calls. All existing G28 calls in base.cfg have been replaced with the new CG28.

I have been leveraging this macro on my 4 Pro for about 8 months now with no issues.

halfmanbear commented 6 months ago

Looks good, thankyou!