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:
Thomas-Karl Pietrowski 2016-03-14 09:38:55 +01:00
parent 7a9e19555a
commit 8bbbb480a4

View file

@ -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?