mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-09-14 13:53:14 +08:00
USBPrinting: Moving baudrate and correcting indent
Moves the baudrate into the if clause, which looks at least for me better and just found a wrong indent
This commit is contained in:
parent
7a9e19555a
commit
8bbbb480a4
@ -135,9 +135,10 @@ class USBPrinterManager(QObject, SignalEmitter, OutputDevicePlugin, Extension):
|
||||
def _getDefaultFirmwareName(self):
|
||||
machine_instance = Application.getInstance().getMachineManager().getActiveMachineInstance()
|
||||
machine_type = machine_instance.getMachineDefinition().getId()
|
||||
baudrate = 250000
|
||||
if sys.platform.startswith("linux"):
|
||||
baudrate = 115200
|
||||
baudrate = 115200
|
||||
else:
|
||||
baudrate = 250000
|
||||
if machine_type == "ultimaker_original":
|
||||
firmware_name = "MarlinUltimaker"
|
||||
if machine_instance.getMachineSettingValue("machine_heated_bed"): #Has heated bed upgrade kit?
|
||||
|
Loading…
x
Reference in New Issue
Block a user