diff --git a/gcode_writer/SnapmakerGCodeWriter.py b/gcode_writer/SnapmakerGCodeWriter.py index 7c23920..cefc186 100644 --- a/gcode_writer/SnapmakerGCodeWriter.py +++ b/gcode_writer/SnapmakerGCodeWriter.py @@ -53,10 +53,13 @@ def __detectHeaderVersion(self): self._header_version = machine.get('header_version', 1) if machine else -1 - def write(self, stream, node, mode=FileWriter.OutputMode.BinaryMode) -> None: + def write(self, stream, node, mode=FileWriter.OutputMode.BinaryMode, mime_type=None, **kwargs) -> bool: + """Writes the G-code for the entire scene to a stream. Copied from GCodeWriter, do little modifications. + Cura 5.11+ passes `mime_type` into writer.write(); accept it for compatibility. + """ if mode != MeshWriter.OutputMode.TextMode: