chiark / gitweb /
Add UMOP, version 14.09
[cura.git] / Cura / gui / firmwareInstall.py
index 2a0a0a4340aa7a7346457a67fc0c97b4438889df..55577c65749e1ba41b6614b12a35e1189b459128 100644 (file)
@@ -29,6 +29,18 @@ def getDefaultFirmware(machineIndex = None):
                        name += '-dual'
                return resources.getPathForFirmware(name + '.hex')
 
+       if profile.getMachineSetting('machine_type', machineIndex) == 'ultimaker_plus':
+               name = 'MarlinUltimaker-UMOP'
+               if profile.getMachineSettingFloat('extruder_amount', machineIndex) > 2:
+                       return None
+               if sys.platform.startswith('linux'):
+                       name += '-115200'
+               else:
+                       name += '-250000'
+               if profile.getMachineSettingFloat('extruder_amount', machineIndex) > 1:
+                       name += '-dual'
+               return resources.getPathForFirmware(name + '.hex')
+
        if profile.getMachineSetting('machine_type', machineIndex) == 'ultimaker2':
                return resources.getPathForFirmware("MarlinUltimaker2.hex")
        if profile.getMachineSetting('machine_type', machineIndex) == 'Witbox':