Skip to content

Commit

Permalink
Merge pull request #14202 from Ultimaker/CURA-10118_Enable_all_USB_po…
Browse files Browse the repository at this point in the history
…rts_for_Mac

[CURA-10118] Change Only_List_USB
  • Loading branch information
jellespijker authored Jan 17, 2023
2 parents 332d41c + 6054473 commit 7ccb361
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion plugins/USBPrinting/USBPrinterOutputDeviceManager.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@

from PyQt6.QtCore import QObject, pyqtSignal

from UM.Platform import Platform
from UM.Signal import Signal, signalemitter
from UM.OutputDevice.OutputDevicePlugin import OutputDevicePlugin
from UM.i18n import i18nCatalog
Expand Down Expand Up @@ -83,7 +84,8 @@ def _updateThread(self):
if container_stack.getMetaDataEntry("supports_usb_connection"):
machine_file_formats = [file_type.strip() for file_type in container_stack.getMetaDataEntry("file_formats").split(";")]
if "text/x-gcode" in machine_file_formats:
port_list = self.getSerialPortList(only_list_usb=True)
# We only limit listing usb on windows is a fix for connecting tty/cu printers on MacOS and Linux
port_list = self.getSerialPortList(only_list_usb=Platform.isWindows())
self._addRemovePorts(port_list)
time.sleep(5)

Expand Down

0 comments on commit 7ccb361

Please sign in to comment.