-
Notifications
You must be signed in to change notification settings - Fork 79
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
Knomi 2 Macro G28 called recursively #63
Comments
Got this problem too. Maybe it is a collision between the sensorless.cfg and the knomi macro. Mainsail console logs about five g28 commands while the error happens. |
Thanks for the reply, Specker! I commented the Knomi G28 macro completly out #[gcode_macro G28] and changed the macros in my sensorless.cfg like this: {% if home_all or 'X' in params %} {% if home_all or 'Y' in params %} {% if home_all or 'Z' in params %} Worked perfectly and i dont have to mess around with modified G28s. |
Ok, I found a slightly BETTER way to do this. I don't like having to edit other config files when I add things (like knomi). And I really don't want things to break if I stop including knomi.cfg with the redefined macros intercepts in the revised [homing_override]. And, it looks like the problem is that [homing_override] is a pretty special macro that does NOT go through the macro rename checks first, it just calls RAW G28 function even if you redefine G28 (it doesn't call your new macro). And it doesn't work to redefine G28 rename old to G28.1 THEN create [homing_override] last (I was hoping it would try to resolve whatever was in place at that point, but it doesn't). HOWEVER, Klipper doesn't seem to complain if you REDEFINE [homing_override] again later (and, no, you can't do rename_existing: in homing_override..Klipper doesn't allow it...sigh). So, I cut and paste the original [homing_override] from my printer.base.cfg that runs / includes in printer.cfg earlier, and paste it at the bottom of my knomi.cfg and change the G28 to G28.1 THERE locally and it works beautifully. It would be better if defining the routine AFTER the rename G28 to G28.1 would just work with G28, but it don't. Now, if I ever want to remove knomi, I just remove the [include knomi.cfg] and the original [homing_override] that is still untouched never gets stomped and everything works. |
can you show me the knomi cfg you use trying to fix mine |
well, mine is quite a bit different from anything anyone uses because I have a pretty custom status for LED control and a bunch of other things all broken out...but I can add it here. Doubt it helps. ` [gcode_macro _STATUS_KNOMI] { action_respond_info("Printer status in KNOMI.CFG is: " ~ status) }
{% elif status == "CRITICAL_ERROR" %}{% elif status == "NOZZLE_CLEANING" %}
` |
When trying to home printer with sensorless-homing,cfg we are getting error: Macro G28 called recursively
What is going on? I believe I have newest firmware that was posted 2 months ago.
The text was updated successfully, but these errors were encountered: