mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-15 09:55:54 +08:00
UMO firmware update to detect heated bed
It detects it by virtue of whether the user indicated that the printer has a heated bed during the add printer wizard. Contributes to issue CURA-440.
This commit is contained in:
parent
ba39864af2
commit
c41b9fb09a
@ -132,12 +132,15 @@ class USBPrinterManager(QObject, SignalEmitter, OutputDevicePlugin, Extension):
|
||||
return USBPrinterManager._instance
|
||||
|
||||
def _getDefaultFirmwareName(self):
|
||||
machine_type = Application.getInstance().getMachineManager().getActiveMachineInstance().getMachineDefinition().getId()
|
||||
machine_instance = Application.getInstance().getMachineManager().getActiveMachineInstance()
|
||||
machine_type = machine_instance.getMachineDefinition().getId()
|
||||
baudrate = 250000
|
||||
if sys.platform.startswith("linux"):
|
||||
baudrate = 115200
|
||||
if machine_type == "ultimaker_original":
|
||||
firmware_name = "MarlinUltimaker"
|
||||
if machine_instance.getMachineSettingValue("machine_heated_bed"): #Has heated bed upgrade kit?
|
||||
firmware_name += "-HBK"
|
||||
firmware_name += "-%d" % (baudrate)
|
||||
return firmware_name + ".hex"
|
||||
elif machine_type == "ultimaker_original_plus":
|
||||
|
Loading…
x
Reference in New Issue
Block a user