Skip to main content

build_command

Function build_command 

Source
pub fn build_command(
    params: &PrintStartParams,
    inspection: Option<&PlateInspection>,
) -> Command
Expand description

Render the print-start command: project_file for a .3mf, gcode_file for raw .gcode. When inspection is present (for a .3mf), its plate-gcode md5 is stamped into the project_file so the printer checks the file matches its bytes before printing; without one the md5 is left empty (the check is skipped), exactly as the builders did before this was shared.