From ebbc0572b8d9735db88024607b528f1322a1f961 Mon Sep 17 00:00:00 2001 From: daid Date: Tue, 20 May 2014 13:45:35 +0200 Subject: [PATCH] Fix firmware filenames. --- Cura/gui/firmwareInstall.py | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/Cura/gui/firmwareInstall.py b/Cura/gui/firmwareInstall.py index 02ead92b..1dcac27f 100644 --- a/Cura/gui/firmwareInstall.py +++ b/Cura/gui/firmwareInstall.py @@ -16,17 +16,18 @@ from Cura.util import resources def getDefaultFirmware(machineIndex = None): if profile.getMachineSetting('machine_type', machineIndex) == 'ultimaker': - if sys.platform.startswith('linux'): - name = 'MarlinUltimaker-115200' - else: - name = 'MarlinUltimaker-250000' + name = 'MarlinUltimaker' if profile.getMachineSettingFloat('extruder_amount', machineIndex) > 2: return None if profile.getMachineSetting('has_heated_bed', machineIndex) == 'True': name += '-HBK' + if sys.platform.startswith('linux'): + name += '-115200' + else: + name += '-250000' if profile.getMachineSettingFloat('extruder_amount', machineIndex) > 1: name += '-dual' - return name + '.hex' + return resources.getPathForFirmware(name + '.hex') if profile.getMachineSetting('machine_type', machineIndex) == 'ultimaker2': return resources.getPathForFirmware("MarlinUltimaker2.hex") -- 2.30.2