Simple print spooler for RRF
Some of you may have seen Tom Sanladerer's video https://www.youtube.com/watch?v=8O9E9rcH6Us in which he showed a device he built to swap magnetic beds automatically, so that he could start printing a new file as soon as the previous print is finished.
This obviously needs a print queue system to allow it work unattended without having to combine the GCode files for each print into a single file.
So I've knocked up some quick-and-dirty print spooler macros for RRF which you can find at https://www.dropbox.com/sh/xygtlsyvn2ludn0/AADVxBYxWkcf1v8PuOtwq1kva?dl=0. Feel free to try them if you have a suitable printer! They are a bit clunky because RRF condition GCode doesn't yet support array-valued variables, so the print queue is limited to 5 files. Also the print queue is not saved if you cycle the power; but that will be easier to implement in RRF 3.4.
If you don't like having to send M98 P"/macros/Queue file to print" S"benchy.gcode" to queue a new print file, remember that you can define new GCodes by creating a suitable macro file. For example, if you rename or copy file /macros/Queue file to print to /sys/M990.g then you can send M990 S"benchy.gcode" to queue a file instead.