aboutsummaryrefslogtreecommitdiffstats
path: root/test/klippy/sdcard_loop.test
diff options
context:
space:
mode:
authorJason S. McMullan <jason.mcmullan@gmail.com>2021-04-17 06:54:12 -0400
committerKevinOConnor <kevin@koconnor.net>2021-05-26 11:57:57 -0400
commit913649de2e8057e849be2a54e08d34302ee37dad (patch)
treeb7461d6351d46c73a5ad10e3aa49e7b8ad8facae /test/klippy/sdcard_loop.test
parent4ea434796bb1f5bcc9d44bfcd0d9d66b8476faa9 (diff)
downloadkutter-913649de2e8057e849be2a54e08d34302ee37dad.tar.gz
kutter-913649de2e8057e849be2a54e08d34302ee37dad.tar.xz
kutter-913649de2e8057e849be2a54e08d34302ee37dad.zip
loop_sdcard: Add loopable SD card file sections
To support continuous belt printing, add nestable repeat loop support via an `[sdcard_loop]` module. Supported G-Code: - SDCARD_LOOP_BEGIN COUNT=n ; Loop for N times, or infinitely if N is 0 - SDCARD_LOOP_END ; End of loop - SDCARD_LOOP_DESIST ; Complete all loops without iterating Marlin M808 compatibility example in `config/sample-macros.cfg`: - M808 Ln ; Loop for N times, or infinitely if N is 0 - M808 ; End of loop - M808 K ; Complete all loops without iterating Added unit tests in test/klippy/sdcard_loop.test See https://reprap.org/wiki/G-code#M808:_Set_or_Goto_Repeat_Marker Signed-off-by: Jason S. McMullan <jason.mcmullan@gmail.com>
Diffstat (limited to 'test/klippy/sdcard_loop.test')
-rw-r--r--test/klippy/sdcard_loop.test9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/klippy/sdcard_loop.test b/test/klippy/sdcard_loop.test
new file mode 100644
index 00000000..dd9db434
--- /dev/null
+++ b/test/klippy/sdcard_loop.test
@@ -0,0 +1,9 @@
+; Virtual SD card unit tests
+
+DICTIONARY atmega2560.dict
+CONFIG sdcard_loop.cfg
+
+G28
+SDCARD_LOOP_DESIST
+; Verify long-name functions
+SDCARD_PRINT_FILE FILENAME=big.gcode