Open mriscoc opened 3 years ago
Interesting!
TERN_(DWIN_CREALITY_LCD, DWIN_Print_Header((parser.string_arg && parser.string_arg[0]) ? parser.string_arg : (char*)"Host Print"));
When not supplied, a nullptr should be passed. Then the receiver (DWIN, or perhaps an extui implementation) can then determine what to do with it.
Is your feature request related to a problem? Please describe.
When the print is started from a host with M75, there is no way of indicate the filename of the file to be printed.
Describe the feature you want
Extend the M75 command to support a string argument similar to the M117 command. When M75 is issued without any argument, it is interpreted as usual, but if an argument is added the text can be parsed to modify a filename variable and the display routines can then display it. I already implement this extension on my source code for the Ender3v2.
Simple example of implementation (needs to be optimized):
Octoprint Before print job starts G-code:
M75 HOST PRINT:{{ event.name }}
Code for the M75 command:
Code for the Display: