mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-11 21:09:00 +08:00
Add firmware upload for umo_dual
CURA-1774
This commit is contained in:
parent
f0622cdda6
commit
dbaa6190be
@ -147,12 +147,12 @@ class USBPrinterOutputDeviceManager(QObject, OutputDevicePlugin, Extension):
|
|||||||
Logger.log("e", "There is no global container stack. Can not update firmware.")
|
Logger.log("e", "There is no global container stack. Can not update firmware.")
|
||||||
self._firmware_view.close()
|
self._firmware_view.close()
|
||||||
return ""
|
return ""
|
||||||
|
|
||||||
# The bottom of the containerstack is the machine definition
|
# The bottom of the containerstack is the machine definition
|
||||||
machine_id = global_container_stack.getBottom().id
|
machine_id = global_container_stack.getBottom().id
|
||||||
|
|
||||||
machine_has_heated_bed = global_container_stack.getProperty("machine_heated_bed", "value")
|
machine_has_heated_bed = global_container_stack.getProperty("machine_heated_bed", "value")
|
||||||
|
|
||||||
if platform.system() == "Linux":
|
if platform.system() == "Linux":
|
||||||
baudrate = 115200
|
baudrate = 115200
|
||||||
else:
|
else:
|
||||||
@ -166,13 +166,15 @@ class USBPrinterOutputDeviceManager(QObject, OutputDevicePlugin, Extension):
|
|||||||
"bq_hephestos_2" : "MarlinHephestos2.hex",
|
"bq_hephestos_2" : "MarlinHephestos2.hex",
|
||||||
"ultimaker_original" : "MarlinUltimaker-{baudrate}.hex",
|
"ultimaker_original" : "MarlinUltimaker-{baudrate}.hex",
|
||||||
"ultimaker_original_plus" : "MarlinUltimaker-UMOP-{baudrate}.hex",
|
"ultimaker_original_plus" : "MarlinUltimaker-UMOP-{baudrate}.hex",
|
||||||
|
"ultimaker_original_dual" : "MarlinUltimaker-{baudrate}-dual.hex",
|
||||||
"ultimaker2" : "MarlinUltimaker2.hex",
|
"ultimaker2" : "MarlinUltimaker2.hex",
|
||||||
"ultimaker2_go" : "MarlinUltimaker2go.hex",
|
"ultimaker2_go" : "MarlinUltimaker2go.hex",
|
||||||
"ultimaker2_plus" : "MarlinUltimaker2plus.hex",
|
"ultimaker2_plus" : "MarlinUltimaker2plus.hex",
|
||||||
"ultimaker2_extended" : "MarlinUltimaker2extended.hex",
|
"ultimaker2_extended" : "MarlinUltimaker2extended.hex",
|
||||||
"ultimaker2_extended_plus" : "MarlinUltimaker2extended-plus.hex",
|
"ultimaker2_extended_plus" : "MarlinUltimaker2extended-plus.hex",
|
||||||
}
|
}
|
||||||
machine_with_heated_bed = {"ultimaker_original" : "MarlinUltimaker-HBK-{baudrate}.hex",
|
machine_with_heated_bed = {"ultimaker_original" : "MarlinUltimaker-HBK-{baudrate}.hex",
|
||||||
|
"ultimaker_original_dual" : "MarlinUltimaker-HBK-{baudrate}-dual.hex",
|
||||||
}
|
}
|
||||||
##TODO: Add check for multiple extruders
|
##TODO: Add check for multiple extruders
|
||||||
hex_file = None
|
hex_file = None
|
||||||
|
Loading…
x
Reference in New Issue
Block a user