I have written a small test code in order to try out some wait macro idea. The code goes as follows:
[gcode_macro test_code]
gcode:
{% set _test = params.TEST|default(0)|float %}
{% if params.TEST is defined and _test > 0 %}
M117 Testing ...
{% for cnt in range(_test|int) %}
G4 P{1000}
{% if cnt > 0 and (cnt % 60) == 0 %}
{action_respond_info("Waited %d seconds ( %d total )" % (cnt|int, _test|int))}
M105
{% endif %}
{% endfor %}
{% endif %}
Now, the idea would be, that I get a message every 60 seconds, accompanied with the output of M105. In reality, I get ALL messages immediately upon calling the macro, and the output of M105 every 60 seconds. That does not seem to be correct?
I have written a small test code in order to try out some wait macro idea. The code goes as follows:
Now, the idea would be, that I get a message every 60 seconds, accompanied with the output of M105. In reality, I get ALL messages immediately upon calling the macro, and the output of M105 every 60 seconds. That does not seem to be correct?
See
I am running Klipper v0.10.0-184-gdd714fc7