From 277c14cd22dca1b85bf0bf17f9c76514e127fd28 Mon Sep 17 00:00:00 2001 From: sckunkle Date: Sat, 1 Feb 2020 19:54:36 -0600 Subject: [PATCH 1/2] Add Dremel Digilab 3D45 support --- octoprint_flashforge/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/octoprint_flashforge/__init__.py b/octoprint_flashforge/__init__.py index 69dcd7c..83dcf87 100644 --- a/octoprint_flashforge/__init__.py +++ b/octoprint_flashforge/__init__.py @@ -14,7 +14,7 @@ class FlashForgePlugin(octoprint.plugin.SettingsPlugin, VENDOR_IDS = {0x0315: "PowerSpec", 0x2a89: "Dremel", 0x2b71: "FlashForge"} PRINTER_IDS = { "PowerSpec": {0x0001: "Ultra 3DPrinter"}, - "Dremel": {0x8889: "Dremel IdeaBuilder"}, + "Dremel": {0x8889: "Dremel IdeaBuilder", 0x888d: "Dremel 3D45"}, "FlashForge": {0x0001: "Dreamer", 0x000A: "Dreamer NX", 0x0002: "Finder v1", 0x0005: "Inventor", 0x0007: "Finder v2", 0x00ff: "PowerSpec Ultra"}} FILE_PACKET_SIZE = 1024 From 6aa75db4679017ec5bf5a8b3d844cdc50ea2531c Mon Sep 17 00:00:00 2001 From: sckunkle Date: Tue, 18 Feb 2020 12:08:50 -0600 Subject: [PATCH 2/2] Dremel 3D45 sends M29 after sd upload, not M28 --- octoprint_flashforge/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/octoprint_flashforge/__init__.py b/octoprint_flashforge/__init__.py index 83dcf87..61b7cb2 100644 --- a/octoprint_flashforge/__init__.py +++ b/octoprint_flashforge/__init__.py @@ -254,7 +254,7 @@ def process_upload(): if not error: result, response = self._serial_obj.sendcommand("M29", 10000) - if result and "CMD M28" in response: + if result and "CMD M28" in response or "CMD M29" in response: response = self._serial_obj.readraw(1000) if result and "failed" not in response: sd_upload_succeeded(filename, remote_name, 10)