List of comments or GCode used to display file information
-
Just trying to define a post-processor for my Vectric software to insert comments at the start of the file which would be relevant to the Duet. Had a good search on the web for any info I could find on it and came up with nothing.
Is there a list of comments and GCode the firmware looks for to gather display info regarding each file? Even just some basics for just the file listing columns in the web interface?
I have some large files on the SD without any comments and it seems to take an age to read the entire file before it moves onto the next in the file list. Hoping that adding the correct comments will save the firmware some time by finding what it needs at the header of the file?
-
There isn't any documentation for this, but you can find the code at https://github.com/dc42/RepRapFirmware/blob/v2-dev/src/Storage/FileInfoParser.cpp. Most of the comment strings it looks for are in tables, so you can search for "static const char* const" to find them.
-
@dc42 Thanks! I'll have a look through the code now.