mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-08 07:27:29 -06:00
USBPrinting: Using platform.system() for platform check
As platform is already imported here, usig platform for the check is much easier.
This commit is contained in:
parent
8bbbb480a4
commit
97a7cee3e2
1 changed files with 1 additions and 1 deletions
|
@ -135,7 +135,7 @@ class USBPrinterManager(QObject, SignalEmitter, OutputDevicePlugin, Extension):
|
|||
def _getDefaultFirmwareName(self):
|
||||
machine_instance = Application.getInstance().getMachineManager().getActiveMachineInstance()
|
||||
machine_type = machine_instance.getMachineDefinition().getId()
|
||||
if sys.platform.startswith("linux"):
|
||||
if platform.system() == "Linux":
|
||||
baudrate = 115200
|
||||
else:
|
||||
baudrate = 250000
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue