From 195e1894d7ad7766fc80c79a8bb6863dd18fb86f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gina=20H=C3=A4u=C3=9Fge?= Date: Tue, 15 Feb 2022 14:36:00 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Profile=20migration=20for=20extr?= =?UTF-8?q?usion=20length?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Closes #4420 --- src/octoprint/printer/profile.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/octoprint/printer/profile.py b/src/octoprint/printer/profile.py index d82e086ad..6d9b17889 100644 --- a/src/octoprint/printer/profile.py +++ b/src/octoprint/printer/profile.py @@ -610,6 +610,12 @@ class PrinterProfileManager: profile["extruder"]["offsets"] = [(0.0, 0.0)] modified = True + if "extruder" in profile and "defaultExtrusionLength" not in profile["extruder"]: + profile["extruder"]["defaultExtrusionLength"] = self.default["extruder"][ + "defaultExtrusionLength" + ] + modified = True + if "heatedChamber" not in profile: profile["heatedChamber"] = False modified = True