moggieuk/Happy-Hare

Possible change to the BLOBIFIER gcode needed to resolve 'park_vars' is undefined

Closed this issue · 2 comments

I was getting the follwing error when setting up Blobifier.

Error evaluating 'gcode_macro BLOBIFIER:gcode': jinja2.exceptions.UndefinedError: 'park_vars' is undefined

After reading all the discussions on the Discord channel relating to this error it turns out that I was not completing a XYZ home and QGL.

The macro does try and check the state of homing and QGL:

{% if "xyz" not in printer.toolhead.homed_axes %}
RESPOND MSG="BLOBIFIER: Not homed! Home xyz before blobbing"
{% elif printer.quad_gantry_level and printer.quad_gantry_level.applied == False %}
RESPOND MSG="BLOBIFIER: QGL not applied! run quad_gantry_level before blobbing"
{% else %}

However, after debugging this, the macro errors before even attempting to run the checks.

Potential solution might be to have the BLOBIFIER macro only carry out the homing checks and all the actual BLOBIFIER logic in the else gets moved to a separate macro called within the else.

I'm pretty sure this is fixed. Are you up-to-date with HH? (A v2.7.2 was just release which will require an upgrade: ./install.sh but it's a simple process/change)

Yep, pulling the latest 2.7.2 gracefully tells me I have not homed.

I was running v2.7.1-60 last night, I was up way too late tinkering so only logged the issues this afternoon.

Thanks!