Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] sensorless homing - Macro G28 called recursively #257

Open
sredoje1973 opened this issue Aug 2, 2024 · 0 comments
Open

[BUG] sensorless homing - Macro G28 called recursively #257

sredoje1973 opened this issue Aug 2, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@sredoje1973
Copy link

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%}
@sredoje1973 sredoje1973 added the bug Something isn't working label Aug 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant