diff --git a/plugins/VersionUpgrade/VersionUpgrade21to22/MachineInstance.py b/plugins/VersionUpgrade/VersionUpgrade21to22/MachineInstance.py index 5b29800d5f..038d35bee0 100644 --- a/plugins/VersionUpgrade/VersionUpgrade21to22/MachineInstance.py +++ b/plugins/VersionUpgrade/VersionUpgrade21to22/MachineInstance.py @@ -63,7 +63,7 @@ class MachineInstance: config.add_section("general") config.set("general", "name", self._name) config.set("general", "type", self._type_name) - config.set("general", "version", 2) #Hard-code version 2, since if this number changes the programmer MUST change this entire function. + config.set("general", "version", "2") #Hard-code version 2, since if this number changes the programmer MUST change this entire function. if self._variant_name: config.set("general", "variant", self._variant_name) if self._key: @@ -77,7 +77,7 @@ class MachineInstance: for key, value in self._machine_setting_overrides.items(): if key == "speed_support_lines": #Setting key was changed for 2.2. key = "speed_support_infill" - config.set("machine_settings", key, value) + config.set("machine_settings", key, str(value)) output = io.StringIO() config.write(output) diff --git a/plugins/VersionUpgrade/VersionUpgrade21to22/Profile.py b/plugins/VersionUpgrade/VersionUpgrade21to22/Profile.py index 65fc243de6..d9e00bf85d 100644 --- a/plugins/VersionUpgrade/VersionUpgrade21to22/Profile.py +++ b/plugins/VersionUpgrade/VersionUpgrade21to22/Profile.py @@ -96,14 +96,14 @@ class Profile: for key, value in self._settings.items(): if key == "speed_support_lines": #Setting key was changed for 2.2. key = "speed_support_infill" - config.set("settings", key, value) + config.set("settings", key, str(value)) if self._changed_settings_defaults: config.add_section("defaults") for key, value in self._changed_settings_defaults.items(): if key == "speed_support_lines": #Setting key was changed for 2.2. key = "speed_support_infill" - config.set("defaults", key, value) + config.set("defaults", key, str(value)) if self._disabled_settings_defaults: config.add_section("disabled_defaults")