jschuh/klipper-macros

[BUG] sensorless homing - Macro G28 called recursively

sredoje1973 opened this issue · 0 comments

After installing the macro set on a Voron with sensorless homing, we get the error "Macro G28 called recursively". Turns out this error is due to the overriding of the g28 command. which is also required for sensorless homing.

Was able to recover by changing all instances of g28 in my sensorless.cfg to G28.6245197, which is specified in the kinematics.cfg file per below.

Not sure if a permanent fix is just to update the docs with outlining a this requirement if running sensorless homing or if there is some other fix.

[gcode_macro g28]
description: Wraps the G28 command to add the Marlin "O" parameter so that
  already homed axes will not be homed again. See the Klipper documentation on
  G28 for the behavior of the other parameters.
  Usage: G28 [O] ...
rename_existing: G28.6245197
gcode:
  {% set axes = 'XYZ'|select('in', params)|join() %}
  LAZY_HOME LAZY={('O' in params)|int}{%if axes%} AXES={axes}{%endif%}