diff options
Diffstat (limited to 'config/sample-macros.cfg')
-rw-r--r-- | config/sample-macros.cfg | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/config/sample-macros.cfg b/config/sample-macros.cfg index ea37c584..0eb049ac 100644 --- a/config/sample-macros.cfg +++ b/config/sample-macros.cfg @@ -176,3 +176,15 @@ gcode: "Humidity: %.2f%%" % ( sensor.temperature, sensor.humidity))} + +# SDCard 'looping' (aka Marlin M808 commands) support +# +# Support SDCard looping +[sdcard_loop] + +# 'Marlin' style M808 compatibility macro for SDCard looping +[gcode_macro M808] +gcode: + {% if params.K is not defined and params.L is defined %}SDCARD_LOOP_BEGIN COUNT={params.L|int}{% endif %} + {% if params.K is not defined and params.L is not defined %}SDCARD_LOOP_END{% endif %} + {% if params.K is defined and params.L is not defined %}SDCARD_LOOP_DESIST{% endif %} |