Commit Graph

3 Commits

Author SHA1 Message Date
Kevin O'Connor cc9541092a test: Update test case to not use pin_map
Remove all users of the pin_map setting.

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2021-10-24 21:11:53 -04:00
Kevin O'Connor f013b7bae6 test: Update test cases to use rotation_distance
Remove all users of step_distance from test configs.

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
2021-10-24 20:53:36 -04:00
Jason S. McMullan 913649de2e 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>
2021-05-26 11:57:57 -04:00